Open second db

dbalargin

Member
Local time
Today, 00:59
Joined
Dec 31, 2002
Messages
39
How do I open a second database from a procedure in a first?
 
stAppName = "MSACCESS.EXE T:\CRIBWARE\misc_Stuff\Calibration_Control.mdb"
Call Shell(stAppName, 1)
 
I get an error that reads: The command line you used to start MS Access contains an option that MS Access doesn't recognize. Exit and restart MS Access using valid command-line options.
I am using Access 97 if that makes a difference.
 
try...

Call Shell("C:\Program Files\Microsoft Office\Office\msaccess.exe C:\Databases\YourDB.mdb", vbMaximizedFocus)
 
Since there are no options on that, not sure what to tell you. Have you tried entering it from a command (DOS) prompt to see what happens?
 
i am getting the same error as before. only the warning box is maximized
 
COPY and PASTE (not retype) your code
 

Users who are viewing this thread

Back
Top Bottom