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!

empty date field.

Status
Not open for further replies.

3dthies

Programmer
Mar 12, 2003
77
0
0
DE
I have wrote a formular:

if isnull ({PERSON.DATE}) then "bla" else
{PERSON.DATE}

CR told me that a string is rquired here (the second row of the formular)

I want to write a text if the date fiel is empty and if its not then print the date field
 
Try
Code:
if isnull ({PERSON.DATE}) then "bla" else 
ToText({PERSON.DATE})
Any formula field can also be used as a display field, string or number or currency or date. In this case, it won't treat the date as a string unless you request this specifically using ToText.

ToText can also format dates, you might find this useful.

[yinyang] Madawc Williams (East Anglia, UK). Using Windows XP & Crystal 10 [yinyang]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top