Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Undefined function 'Command' in expression

Status
Not open for further replies.

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
 
Steve,
Have you tried opening the db with the /decompile switch, then recompiling?
--Jim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top