Does anyone else need quotes to make Access run?

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
DavidAtCaspian
Newbie
Posts: 2
Joined: Fri May 05, 2006 12:35 pm

Does anyone else need quotes to make Access run?

Post by DavidAtCaspian » Fri May 05, 2006 1:47 pm

My first attempt at running MS Access has failed

1) This line:

Run program> C:\Program Files\Microsoft Office\Office10\MSACCESS.EXE C:\Tracking\NewTrack.mdb /x sched (most of which I got copying and pasting)

gives an error message "Error executing ...... (2)"

2) If I remove the macro and try
Run program> C:\Program Files\Microsoft Office\Office10\MSACCESS.EXE C:\Tracking\NewTrack.mdb (ALL of which is copy/paste)

I get the same error.

3) If I remove the path to the mdb and just open access - same error.
4) If I do
Let>filename =C:\Program Files\Microsoft Office\Office10\MSACCESS.EXE

run program>filename

then access starts up, but as soon as I add the mdb, it fails with
"Error Executing" again

If I just do
run program> msaccess.exe, it fails again

After a load of faffing about (A UK expression of exasperation), I finally got it to work by enclosing the actual access command line (but nothing else) in quote marks (").
Now, nowhere in my searches have I seen anyone else having to use quote marks to run a program.
Indeed several examples of ACCESS in these board do not have quote marks.
Am I doing something wrong? Or has my machine been visited by aliens?


I am running the eval version of 8.0.1.


And finally the line that does work is:

Run program>"C:\Program Files\Microsoft Office\Office10\MSACCESS.EXE" c:\tracking\newtrack.mdb /x sched


Not bad for nearly two hours work and internet investigation??

Any views ??

User avatar
JRL
Automation Wizard
Posts: 3526
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Fri May 05, 2006 2:26 pm

Assuming you've copied and pasted your failing code. the problem is the space after "Run program> " and the space after "filename= ".

See THIS thread

Hope this helps,
Dick

DavidAtCaspian
Newbie
Posts: 2
Joined: Fri May 05, 2006 12:35 pm

Thanks

Post by DavidAtCaspian » Fri May 05, 2006 5:37 pm

Great. Much appreciated.
Thanks

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts