Default Programs

I have a batch file that I created to open an access database.  start /MIN msaccess.exe "S:\DATABASES\In Out Board\FrontEnd_IOBoard.mdb" /x mcrNormalStart

The problem is that it is supposed to open with Access 2003 but it is open with Access 97.  This all happened because we installed a program where the front end was programed with Access 97.

For all of the machines I just right clicked the mdb and pressed open with and picked the MSAccess.exe 2003 file.  This works for all of the databases opened by double clicking.

The one opened with the batch file always opens in Access 97.  

How can I get the batch file to open the correct version of Access?

Thanks,
JOe K.
ClaudeWalkerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

SStoryCommented:
Instead of saying msaccess.exe, give it an absolute path to the correct one.
probably
C:\Program Files\Microsoft Office\OFFICE11\msaccess.exe

Be sure to enclose it in " "
0
Rey Obrero (Capricorn1)Commented:

on this line

start /MIN msaccess.exe "S:\DATABASES\In Out Board\FrontEnd_IOBoard.mdb" /x mcrNormalStart


change msaccess.exe to  

    "C:\Program Files\Microsoft Office\OFFICE11\msaccess.exe"

start /MIN "C:\Program Files\Microsoft Office\OFFICE11\msaccess.exe" "S:\DATABASES\In Out Board\FrontEnd_IOBoard.mdb" /x mcrNormalStart
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ClaudeWalkerAuthor Commented:
Any ideas on why its not running that Macro with this modified batch?
0
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

Rey Obrero (Capricorn1)Commented:
are you getting the Convert/open database message when you open the A97 db in A2003?


see this link
How to suppress the Convert/Open Database dialog box when you open an Access 97 database
http://support.microsoft.com/default.aspx?scid=kb;en-us;824260
0
ClaudeWalkerAuthor Commented:
No, I am not getting that message.  It is opening fine accept in the wrong version of Access (with the toolbars suppressed).

Now its opening in the right format with the batch file but the macro is not running.  
0
Rey Obrero (Capricorn1)Commented:
can you try this

start /MAX "C:\Program Files\Microsoft Office\OFFICE11\msaccess.exe" "S:\DATABASES\In Out Board\FrontEnd_IOBoard.mdb" /x mcrNormalStart
0
ClaudeWalkerAuthor Commented:
Still Nothing.
0
ClaudeWalkerAuthor Commented:
I found a work around and ended up just getting rid of the batch file altogether.  

Thanks for your efforts,
JOe K.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Batch

From novice to tech pro — start learning today.