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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

oledb provider for sql, date is not a recognized function name

Status
Not open for further replies.

gagani

Programmer
Nov 20, 2011
57
GB
I added a new command to the report. It's working fine when I write

solddate>={?FromDate} and solddate<={?ToDate} in the query.

But when I write,
solddate>=date(year({?FromDate}),1,1) and solddate<={?ToDate}

it's throwing an error: microsoft oledb provider for sql, date is not a
recognized function name.

Could anyone help with it.
 
You can not use commands like that. A command must be SQL.

You can use your formula in the select expert

goto

Report-> Selection Formulas -> Record

Ian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top