Set Mypath to the folder that the Database is in

billHassall

Registered User.
Local time
Today, 17:44
Joined
Feb 25, 2010
Messages
27
I will apologise for this request straight away, it should be straight forward, but I can't seem to find the right statement

When i am using VBA on Excel i use the following statement to open up a file that is in the same directory as the active file

MyPath = ActiveWorkbook.Path
Workbooks.Open Filename:=MyPath & "\CT Daily Info.xls"

What I can't find is what I need to replace "Active workbook" with for this to work in Access and if I could you something similar to output files by just filename into the same directory that the database is in.

Thanks

Bill
 
MyPath = CurrentProject.Path

JR
 

Users who are viewing this thread

Back
Top Bottom