I got the same result. I guess you cannot use a macro to start another
instance of Access. I never to use macros anyway so I'll have to suggest
that you copy the code from:
http://www.mvps.org/access/api/api0018.htm
into a standard module, and save the module with a name like basUtilities
(anything but the function name) then call it from a command button like:
Sub cmdWhatever_Click()
Dim x
x = fHandleFile("C:\Your Path To\YourFile.mdb", WIN_NORMAL)
End Sub
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.accessmvp.com
http://www.mvps.org/access
Co-author: "Access 2010 Solutions", published by Wiley
Thanks. I will try one of those.- Hide quoted text -
- Show quoted text -
In the command line what do i need to put besides the path? Entering
just the path did not work. I get an error saying the path is invalid
or a component is missing. The path is correct because if i copy it to
explorer it opens the database with no problem.