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

Open Access database

Status
Not open for further replies.

lixie

Programmer
Feb 26, 2002
5
US
Is there a method or function I can use to open another Access database and let users work with that database?
 
Do you want to open the whole dB separately, or do you want to get to certain tables/forms, etc...? Kyle [pipe]
 
I would like to open the entire database.

Thank in advance.
 
OK, well I use this code to open a seperate dB and run it...


Dim strAccDB as String, strAccLoc as String
strAccDB = """" & "dBPath" & """"
strAccLoc = SysCmd(acSysCmdAccessDir) & "MSACCESS.exe"
Call Shell(strAccLoc & " " & strAccDB, vbMaximizedFocus)


Give it a shot, I'm just using "Shell" to open the dB, but the strAccLoc variable is set to the location of Access on the Machine (or on the server if you're running thin-client) so the Shell call can work. Kyle [pipe]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top