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

A date-time is required here error 1

Status
Not open for further replies.

JBourne77

IS-IT--Management
Jan 21, 2008
153
US
I am stumped on my formula and the error returned.

A date-time is required here.

Highlights the '1800-01-01 00:00:00.000'

Code:
IF {Data.ApptDte} = '1800-01-01 00:00:00.000' then ' ' 
ELSE {Data.ApptDte}
 
Try:

IF {Data.ApptDte} = datetime(1800,1,1,0,0,0) then
datetime(0,0,0,0,0,0) ELSE
{Data.ApptDte}

This would return a blank field--is that your goal? The error message is telling you that ApptDte is a datetime and therefore must be compared to a datetime, not a string.

-LB
 
Great explanation and yes, I wanted a blank. You made my day, thanks!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top