Solved

Access form

Posted on 2011-03-16
2
277 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

786 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