Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Generate an excel report in current directory

Status
Not open for further replies.

agt119

Programmer
Feb 6, 2007
10
AR
Hi all,

I'm generating an excel report from my access application with VBA, using: DoCmd.OutputTo acReport...

I currently place the files in My Documents.

My question is, how can I tell the application to generate the files in the same directory where the aplication's files are located? This means, if my app is at c:\AAA then the files are saved there, if the app is at d:\GGG then the files are generated there.

Is there a way to do that?

Thanks in advance!
 
What about CurrentProject.Path ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top