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

sql snytax to crystal report.

Status
Not open for further replies.

homerunkevin

IS-IT--Management
Jun 7, 2002
86
0
0
US
Morning,
I have a where condition Like "*/*/2003*"

How can this be translated in crystal report? I use in the period form yearto date, between date 2003 01-01- Date 2003 - 12-31. but not data comes out.

I just not sure is the right thing to use or not

Love always,
Kevin Z
Techncial Support specailist
 
That isn't the way to do it in Crystal, and that isn't the way you should do it with real sql either, it isn't very efficient.

Here's an example in Crystal:

Go to the record selection formula (Report->Edit Selection Formula->Record) and place something like:

{table.field) = yeartodate

It will generate the proper SQL for you (check Database->Show SQL Query), and note that it does not use a LIKE predicate as it's slower.

Hope this helps.

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top