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

get the name of the current database? 1

Status
Not open for further replies.

drctx

IS-IT--Management
May 20, 2003
226
US
is there a way to get the name of the current database?
 
I don't know what you're running, this is for Access 2000:
Code:
Dim strDB As String

strDB = CurrentProject.Name   'returns db1.mdb or similar

strDB = CurrentDB.Name        'returns full path and filename

VBSlammer
redinvader3walking.gif

Unemployed in Houston, Texas
 
thanks! exactly what i was looking for.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top