Actually, you've got to call Access, the mdb file, and the workgroup file (unless you're using the default).
Here's a sample from one of mine:
"C:\Program Files\Microsoft Office\Office\msaccess.exe" "C:\BnkRecSW\Prdction\Tools\BnkRecFE.mdb" /wrkgrp G:\HOME\BANKREC\BnkRecSW\Prdction\Tools\BnkRec.mdw
It's all one line. It will, of course, require different directories, depending on how your system is set up.
Also, if you're interested in looking into what else you can do with batch files and Access databases, check out the Deploying Databases article on my website.
Please post in the appropriate forum with a descriptive subject; code and SQL, if referenced; and expected results. See thread181-473997 for more pointers.
This has the added benefit of opening the application in a new window so that the DOS window closes. If you run the batch file from a hyperlink, the DOS window stays open.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.