Erin Leale
asked on
Crystal Reports - Compare Date Time with Current Date and Time
Hello:
I have a report that pulls pricing by date and time - I need to suppress any Lines with Pricing when the download is over 24 hours old. The Date and time fields are separate fields on the report. The details are all in the details a section of the report.
Thanks in advance!
I have a report that pulls pricing by date and time - I need to suppress any Lines with Pricing when the download is over 24 hours old. The Date and time fields are separate fields on the report. The details are all in the details a section of the report.
Thanks in advance!
ASKER
In the Suppression formula:
DateTime(Date({FT_PriceQuo teWrk.D040 _RateEffDa te}), Time({FT_PriceQuoteWrk.D04 0_RateEffT ime})) < CurrentDateTime -1
The error is on the RateEffDate - A date-time is required here.
All the data is in the Table I'm using by default. So I need to filter on the report.
Thank you.
DateTime(Date({FT_PriceQuo
The error is on the RateEffDate - A date-time is required here.
All the data is in the Table I'm using by default. So I need to filter on the report.
Thank you.
ASKER
I forgot to mention the fields types - the Date field is an actual Date type and the Time is a string.
Thanks.
Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you - that did the trick.
Try this
Selection formula
DateTime(Date({Datefield})
Suppression formula
DateTime(Date({Datefield})
If that doesn't work post the error message and show what type the date and time fields are.
mlmcc