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 cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access DB path

Status
Not open for further replies.

zliazmei

Structural
Joined
Feb 5, 2002
Messages
97
Location
AE
Hi all!

Does anybody knows how can I retrieve the current access DB path in VB.
I am trying to solve a problem : the Dbase when moved into another folder will retrieve it new location.

Thanks!

Zmei

 
Look up the CurDir function

Good Luck
johnwm
 
10X John!

I can not uderstand why yest dhe curdir() was returning the corect path, and today it is returning c:\doc&set\......

WHY???

ZMei

 
Ahh, CurDir will return the active Windows directory, not the file's path. If you are using Access VBA, you can use CurrentProject.Path to return the path of the active database.

DimensionalSolutions@Core.com
While I welcome e-mail messages, please post all thread activity in these forums for the benefit of all members.
 
Thanks a lot!!!!!

Dsi, you saved my life!

ZMEI

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top