Solved

Access form

Posted on 2011-03-16
2
279 Views
Last Modified: 2012-05-11
Hi,

I have a form where im trying to run a make table query.

Two questions

(1) to run the query, is this code correct?

DoCmd.OpenQuery "GL Balances", acViewNormal

(2) to transfer that out of the MDB to excel, is this code correct?

DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel8, "Balances", "G:\Asset Services MI\UnMatched Merit\Balances.xls", True, "GL Balances"


Thanks
Seamus
0
Comment
Question by:Seamus2626
2 Comments
 
LVL 77

Accepted Solution

by:
peter57r earned 500 total points
ID: 35146243
Are you having a problem with the code?
If so, what is going wrong?
0
 

Author Closing Comment

by:Seamus2626
ID: 35146281
I just tested it again and its fine. Thanks

Seamus
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question