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

passing date parameter in to sql script

Status
Not open for further replies.

Macho123

Technical User
Oct 20, 2007
62
US
Hi I am using crystal reports 11 and I have a problem when I am trying to pass the date parametrs in to the sql script at the add command facility. I am getting the following error.

Failet to retrive data from the Database,
Missing right parantesis.

but when I run the same query in oracle it is working fine. could anybody help me out with this.

Thanks,
krant.
 
It says that you are missing a right parenthesis so the syntax is amiss here.

Without seeing the add command, it would be a little difficult and highly improbable for anyone of us to provide a solution to your problem.
 
pkra and kskid,

I have the same error when I try to pass a date to my command window. Here is the code which would receive the date....

AND ACCESS_LOG.ACCESS_TIME >= TO_DATE ('{?Start Date}', 'DD-MM-YYYY HH24:MI:SS')
AND ACCESS_LOG.ACCESS_TIME <= TO_DATE ('{?End Date}', 'DD-MM-YYYY HH24:MI:SS')
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top