How to Open a different Database File Whithin another 
Author Message
 How to Open a different Database File Whithin another

I've tried several things without success
The only one is exiting msaccess completely but there must be anyway to
close the current database file and open another one automatically.

Can you please help me???

Thank you very much
Eduardo Daz
Canary Islands, Spain.



Fri, 08 Dec 2000 03:00:00 GMT  
 How to Open a different Database File Whithin another

Hi Eduardo,

    As far as I know, from code, you still only can use SendKeys.
OpenCurrentDatabase etc. work fine with Automation but not from the database
where the code is executing.  Try

SendKeys "%FO" & strInMDB & "~"

where strInMDB is the full path to the database you're trying to open.

HTH
--
Dev Ashish (Just my $.001)
---------------
The Access Web ( http://home.att.net/~dashish )
---------------


:I've tried several things without success
:The only one is exiting msaccess completely but there must be anyway to
:close the current database file and open another one automatically.
:
:Can you please help me???
:
:Thank you very much
:Eduardo Daz
:Canary Islands, Spain.
:
:
:
:



Fri, 08 Dec 2000 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Open different database file within Access using code

2. Opening different database

3. Close Database Then Open Different Application

4. Open database from VBA with different workgroup.

5. Opening a different database

6. Opening different databases/user

7. Opening different DBASE-Databases at runtime via DAO

8. Open Two Database with Two System.Mda and Two different User Names and Password

9. Opening a UserForm in a different template file.

10. Launching a different database from a different db w/ vba

11. Crystal Reports from Different database files?

12. What are these DISCO files and Why are they Different in different Directories?- Long Post-

 

 
Powered by phpBB® Forum Software