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

How do you programmatically display the location of the back-end db

Status
Not open for further replies.

Pack10

Programmer
Feb 3, 2010
495
US
I have a split database and I would like to display on the main form the location (folder) of the linked tables.
I have a test and prod folder for the back end and just in case I make a mistake, I want to see where the database is pointing.
How would i do that?
 
You can try something like:
Code:
Dlookup("database","msysobjects","Name='Your Table Name Here'")
This assumes your table names are not repeated as other object types.
or
Code:
Mid(Currentdb.TableDefs("Your Table Name Here").Connect,11)


Duane
Hook'D on Access
MS Access MVP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top