Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations pierreick 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
Feb 5, 2002
97
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

 
Replies continue below

Recommended for you

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