I am attempting to build a report for SSRS using Visual Studio.
I have a query that is returning results, and the report is functioning perfectly. However, the end user decided they wanted a date range selector on this report. I have done this hundreds of times before with standard SQL databases/reports, but never before when accessing a Sage database.
Here is my issue. When I put the date parameters into the query, it throws an error message. Here is the line in the query that is causing me the issue:
AND SO_SalesOrderDetail.PromiseDate between {d @beginDate} and {d @endDate}
And here is the error message it gives:
Error[37000][ProvideX][ODBC Driver]Expected lexical element not found: <identifier>.
This query functions perfectly if I hard code a static date into it, but the user wants to be able to select a date range of their own. Any ideas on how to fix this issue?
Mitchell Colwell