Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 2129

Parameter in command object giving error

$
0
0

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!


Viewing all articles
Browse latest Browse all 2129

Trending Articles