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

Running command-line start up options from VBA

Status
Not open for further replies.

mabris

Technical User
Mar 23, 2005
10
US
I'm setting up several secured databases to be shared over a netwrok. For people to log in using a user name from the system.mdw, i've had to set up separate shortcuts for each person, because access seems to be installed in different directories on several machines.

I want to be able to use a "Gateway" database that a user could open with out worrying about security. From this database, they would select which of the three (currently) databases they wanted to use. The Gateway database would read the path of the running Access application on the fly, and open the desired database, pointing to the appropiate system.mdw.

What I'm having problems with is figuring out how to open a database from within Access using VBA with the command-line options. I'm guessing I could either gigure out how to pass them as arguments somehow, or cobble together a string to pass to window's run command (is that possible?).
 
You'll want to post this in an Access forum.

Denny
MCSA (2003) / MCDBA (SQL 2000)

--Anything is possible. All it takes is a little research. (Me)

[noevil]
(Not quite so old any more.)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top