current database path 
Author Message
 current database path

Is there a way to recall the path to the current database in vba?

I need to know the full path of the application, as it is packaged using the
packaging wizard, the user could potentially have installed it anywhere on
their PC...

Thanks

Nick



Tue, 11 Oct 2005 20:49:44 GMT  
 current database path
Which version of Access.  In 2000 and later, all these work:

?CurrentProject.Path
C:\MSOffice2000\Office\Samples
?CurrentProject.Name
Northwind.mdb
?Currentdb.Name
C:\MSOffice2000\Office\Samples\Northwind.mdb

The last one also works in 97.

--
John Viescas, author
"Microsoft Office Access 2003 Inside Out" (coming soon)
"Running Microsoft Access 2000"
"SQL Queries for Mere Mortals"
http://www.viescas.com/
(Microsoft Access MVP since 1993)

Quote:
> Is there a way to recall the path to the current database in vba?

> I need to know the full path of the application, as it is packaged using
the
> packaging wizard, the user could potentially have installed it anywhere on
> their PC...

> Thanks

> Nick



Tue, 11 Oct 2005 21:28:01 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Current database path name

2. Finding path of current database?

3. How to get path of current database?

4. Path of Current database ?

5. Get current database directory path

6. Setting the path to the path of the current application

7. Get current path in Access97

8. Path name of current DB

9. How to code path to current directory

10. Retreive path and folder name of current db

11. How to get current path

12. get path of current mdb in code

 

 
Powered by phpBB® Forum Software