I am trying to add a static parameter to my command object in Crystal. I am going to use it in my where clause like this:
WHERE ARPB_TRANSACTIONS.TX_TYPE_C=1 AND (ARPB_TRANSACTIONS.POST_DATE between @StartDate and @EndDate)
and (ARPB_TRANSACTIONS.LOC_ID in {?Location ID} OR 0 in {?Location ID})
and ({BILL_AREA.FIN_SUBDIV_ID in {?Financial Subdivision ID} OR 0 in {?Financial Subdivision ID})
I get this error message:
SAP Crystal Reports
---------------------------
Failed to retrieve data from the database.
Details: 42000:[Microsoft][SQL Server Native Client 11.0]Syntax error, permission violation, or other nonspecific error
I am using Crystal 11
Please help!