You forgot to include the full path to msaccess, e.g.:
"C:\Program Files\Microsoft Office\Office12\MSACCESS.EXE" /compact
"c:\Consulting Tracking Program\Consulting Tracking.accdb"
--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users -
http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
"OD" <(E-Mail Removed)> wrote in message
news:F2938FD5-BE50-4BA4-9792-(E-Mail Removed)...
> Under windows xp and vista, I could use a command line switch with access,
> but now I get an error.
>
> EXAMPLE:
>
> "c:\Consulting Tracking Program\Consulting Tracking.accdb" /compact
>
> [Now I get a message box saying that thier was a problem sending the
> command
> to the program.]
>
> Thanks
> OD