Best method to open a db and set focus on it

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

What is the best way, in VB code, to open a database and set focus to it from another access database? I tried OpenCurrentDatabase and that didn't work. It said "You already have the database open." when I really don't have it open.

Thanks in advance
 
Have you tried:

Shell "MSACCESS.EXE ""C:\Path To Your
Database\Datbase.mdb""" , vbMaximizedFocus


Chris

-----Original Message-----
What is the best way, in VB code, to open a database and
set focus to it from another access database? I tried
OpenCurrentDatabase and that didn't work. It said "You
already have the database open." when I really don't have
it open.
 
Back
Top