Can Access 2007 discern which folder it lives in?

B

Brad

In order to simplify our "TEST to PROD" change control we would like to be
able to programmatically (in VBA) determine which folder an ACCDB lives in.

Is this possible?

Thanks,
Brad
 
D

Dirk Goldgar

Brad said:
In order to simplify our "TEST to PROD" change control we would like to be
able to programmatically (in VBA) determine which folder an ACCDB lives
in.


CurrentProject.Path will return the folder in which the current database
resides.
 
T

Tony Toews [MVP]

Brad said:
In order to simplify our "TEST to PROD" change control we would like to be
able to programmatically (in VBA) determine which folder an ACCDB lives in.

Dirk has already given you the answer.

I pretty much always distributed my FEs as MDEs/ACCDEs. So I put a
check in it that if the user is running an MDB and this is running
against the prod database the main menu form background colour is red.

Tony
--
Tony Toews, Microsoft Access MVP
Tony's Main MS Access pages - http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
For a convenient utility to keep your users FEs and other files
updated see http://www.autofeupdater.com/
Granite Fleet Manager http://www.granitefleet.com/
 
T

Tony Toews [MVP]

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