Cannot pass date parameter in Crystal report 9

I keep getting this error when I try to create a data set in Crystal Report 9.

I go to Database ExpertAdd Command and then type in the syntax below and was prompted with incorrect error.

This is a date field, with no time stamp.

Anyone know how to get pass this?! Thanks!
exec GetRecentData '{?@TransDate}'

Open in new window

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Try it without the ' '.  The ' ' make SQL treat it as a string

TeknikDevAuthor Commented:
Aren't dates require ''?
Shouldn't if it is a true date datatype.  Did you try it?

I generally passed them in the SQL string using the DATE function.

exec GetRecentData  DATE({?@TransDate})

Where is this being run?


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Crystal Reports

From novice to tech pro — start learning today.