how do i export from access to user's temp drive?

T

top4747

I have created a module to do the following:
DoCmd.SetWarnings False
DoCmd.OpenQuery "Look-Up by Name", acViewNormal, acEdit
DoCmd.Close acQuery, "Look-Up by Name"
DoCmd.OutputTo acQuery, "Look-Up by Name", "MicrosoftExcelBiff8(*.xls)",
c:/Look-Up", True, "", 0

But i want to change the Output to the user's temp drive. how do i do this?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top