daveinmb
02-16-2007, 04:54 PM
I am usually able to figure things out on my own but I really need some help on this one.
I have have tried numerous times, combinations and spent days and hours now trying to figure this out and I just can't. I am sure it is something stupid like a slash somewhere I have missed.
I have a project that I need to upgrade from AMS 4 to AMS 6 my previous code worked fine in AMS 4 but now I can't get this to work in AMS 6
In AMS 4 I used:
File Execute
With the following:
FileNames C:\Program Files\Microsoft Office\ART\Office\MSACCESS.EXE
Args "C:\Program Files\MY Software\system\ini.mdb" /runtime /WRKGRP "C:\Program Files\MY Software\system\key.mdw" /user My Name /pwd 1234
Working Folder C:\Program Files\MY Software\system\
The only thing I can get to work using Action File.Run in AM6 is:
FileNames "C:\\Program Files\\Microsoft Office\\ART\\Office\\MSACCESS.EXE"
Whenever I add any variation of The command line arguments to pass to the executable such as:
Args "C:\Program Files\MY Software\system\ini.mdb" /runtime /WRKGRP "C:\Program Files\MY Software\system\key.mdw" /user My Name /pwd 1234
Working Folder C:\Program Files\MY Software\system\
I get errors in AMS or errors starting MS Access that it is not a valid MS Access Command.
I have tried \\ and /\ & \/ and you name it and I cant get the argument to pass properly.
Please Help!
I have have tried numerous times, combinations and spent days and hours now trying to figure this out and I just can't. I am sure it is something stupid like a slash somewhere I have missed.
I have a project that I need to upgrade from AMS 4 to AMS 6 my previous code worked fine in AMS 4 but now I can't get this to work in AMS 6
In AMS 4 I used:
File Execute
With the following:
FileNames C:\Program Files\Microsoft Office\ART\Office\MSACCESS.EXE
Args "C:\Program Files\MY Software\system\ini.mdb" /runtime /WRKGRP "C:\Program Files\MY Software\system\key.mdw" /user My Name /pwd 1234
Working Folder C:\Program Files\MY Software\system\
The only thing I can get to work using Action File.Run in AM6 is:
FileNames "C:\\Program Files\\Microsoft Office\\ART\\Office\\MSACCESS.EXE"
Whenever I add any variation of The command line arguments to pass to the executable such as:
Args "C:\Program Files\MY Software\system\ini.mdb" /runtime /WRKGRP "C:\Program Files\MY Software\system\key.mdw" /user My Name /pwd 1234
Working Folder C:\Program Files\MY Software\system\
I get errors in AMS or errors starting MS Access that it is not a valid MS Access Command.
I have tried \\ and /\ & \/ and you name it and I cant get the argument to pass properly.
Please Help!