stevebanks
Programmer
- Mar 30, 2004
- 93
Hi I am trying to run a macro from command line with the /cmd switch to input some command line arguments in a query.
On my Office 2003 it works fine, e.g.
/cmd "01/01/09"
however, on the machine i need it to run on it errors with the
"Undefined function 'Command' in expression"
All i am doing is calling the command in a query:
Start date: Command()
Any suggestions? I have tried in the VB references and the correct VBA etc.. seem to be ticked?
Thanks
Steve
On my Office 2003 it works fine, e.g.
/cmd "01/01/09"
however, on the machine i need it to run on it errors with the
"Undefined function 'Command' in expression"
All i am doing is calling the command in a query:
Start date: Command()
Any suggestions? I have tried in the VB references and the correct VBA etc.. seem to be ticked?
Thanks
Steve