Opening an .mdb file from VB into Access 
Author Message
 Opening an .mdb file from VB into Access

The subject says it all;

I'd like to be able to programmatically open up a filepath "c:\...\TMP.mdb"
into MS Access.
What's the command line for this?

Thanks.



Mon, 17 Jul 2000 03:00:00 GMT  
 Opening an .mdb file from VB into Access

Quote:
>The subject says it all;

>I'd like to be able to programmatically open up a filepath "c:\...\TMP.mdb"
>into MS Access.
>What's the command line for this?

What does "into Access" mean? Are you talking about launching a copy
of Access with a certain database loaded? Just construct the command
line:

c:\where\ever\access\is\msaccess.exe c:\where\ever\your\db\is\tmp.mdb

-- Jim Ferguson, FMS
   http://www.fmsinc.com



Tue, 18 Jul 2000 03:00:00 GMT  
 Opening an .mdb file from VB into Access

this should be close, if not check the help for the methods mentioned:

dim db as database
dim rs as recordset

        set db = opendatabase("c:\tmp.mdb")
        set rs = db.openrecordset("select * from SomeTable")

        ....

Quote:

> The subject says it all;

> I'd like to be able to programmatically open up a filepath "c:\...\TMP.mdb"
> into MS Access.
> What's the command line for this?

> Thanks.



Tue, 18 Jul 2000 03:00:00 GMT  
 Opening an .mdb file from VB into Access

I believe that you are looking to launch MS Access with the file listed?  If
that is the case, you can use Shell() if you know the path to access or you
can use the ShellExecute() API that has been listed many time on this
newgroup (mostly for people launching a .htm file into the default browser).
If you can't find it, someone or I can repost the info.
jc


Quote:
>The subject says it all;

>I'd like to be able to programmatically open up a filepath "c:\...\TMP.mdb"
>into MS Access.
>What's the command line for this?

>Thanks.



Tue, 18 Jul 2000 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Opening an .mdb file from VB into Access

2. Specifiying a Workgroup File When Using ADO to Open an Access .mdb file (OLEDB)

3. Opening Access 97 mdb file with Windows 2000

4. opening another .mdb file within access

5. Microsoft Jet Database Engine Cannot Open The File.......(access)mdb

6. 'how to open an password protected access mdb file

7. 'how to open an password protected access mdb file

8. 'how to open an password protected access mdb file

9. 'how to open an password protected access mdb file

10. Microsoft Jet Database Engine Cannot Open The File.......(access)mdb

11. Opening a connection with ADO to a MS Access 97 .mdb file

12. Using VB to access MS Access (mdb file) in remote host

 

 
Powered by phpBB® Forum Software