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

User-defined field

Status
Not open for further replies.

Dukester0122

IS-IT--Management
Mar 18, 2003
587
US
When a user forgets to enter a date on the user-defined field, it returns 1/1/1900. I want it blank instead
 
Code:
if {your.date} = Date(1900, 1, 1) then " "
else Totext({your.date})

I'd do it as
Code:
if {your.date} = Date(1900, 1, 1) then "Date Missed"
else Totext({your.date}, "dd MMM yy")
to format the date and distinguish 1900 from other possibilities like a null date.

[yinyang] Madawc Williams (East Anglia, UK) [yinyang]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top