How to open another database from within Access using code 
Author Message
 How to open another database from within Access using code

This seems easy but so far I can not get it to work.

How can you get Access to open another database using code. I have tried
send keys "^O~" for file open and selecting the database file, but nothing
happens. If I try application.opencurrentdatabase, this will open another
file, but will leave the original file open, which if you then close will
close both Access files.

This seems really easy but I must be missing something !!!



Tue, 25 Nov 2003 17:41:48 GMT  
 How to open another database from within Access using code
Hi,

Try

Call Shell(strAppPath, 1)
DoCmd.Quit

Works well in Access 97!
Chris


Quote:
> This seems easy but so far I can not get it to work.

> How can you get Access to open another database using code. I have tried
> send keys "^O~" for file open and selecting the database file, but nothing
> happens. If I try application.opencurrentdatabase, this will open another
> file, but will leave the original file open, which if you then close will
> close both Access files.

> This seems really easy but I must be missing something !!!



Wed, 26 Nov 2003 07:03:27 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Open different database file within Access using code

2. Opening a db within Access VB code

3. Print/View Access Report from within VB (with database open)

4. Open excel spreadsheet from within Access using VBA

5. Executing Excel-VBA code within a Access-database

6. Open Database From Within Database

7. How to Open database from within another database

8. Opening a Database from within a Database

9. Opening Database using code

10. ???VB 5 CODE OPEN ACCESS DATABASE????

11. Open remote Access database in ASP code

 

 
Powered by phpBB® Forum Software