Open a different database

indesisiv

Access - What's that?
Local time
Today, 06:53
Joined
Jun 13, 2002
Messages
265
Can anyone tell me the code needed to open a different database.
Basically i just need to run this from a command button so that the users can open a different database.

i have tried the
Code:
Call Shell("C:\test\play.mdb", 1)

but i assume that it only works on exe files or something because i get the message invalid procedure call or argument.
But it works normally when i just try and open something like word.


Any ideas

Steve
 
Thanks

Cheers Mile
Thats exactly what i was looking for.
 
I don't know although I'd have thought the Shell or FollowHyperlink method would only open the database while creating an Object lets you manipulate the database.

People should remember to set the Object to Nothing once complete with it otherwise it will live on in the memory.
 

Users who are viewing this thread

Back
Top Bottom