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

Isnull Date field then Blank spaces

Status
Not open for further replies.

cunner26

Technical User
Nov 18, 2002
9
CA
Hello,

I am working on a report that requires me to have the date appear in a certain format, for instance (YYYYMMDD). When I take the date field and use the following

cdate(Field)

then the date appears in the correct format. The problem I am running into is that if there is no date in the field then I need 8 blank spaces. I have tried using the following formula,

if isnull({eeCustomData.Field2}) then " " else cdate({eeCustomData.Field2})

An error message returns stating "a string is required here" and places the cursor infront of the cdate statement.

Any help on this would be much appreciated,

P.S. eeCustomData.Field2 has been set up as a date field.
 
Use another field over the top of it and conditionally suppress each based on the ISNULL({date})

-k
 
Sorry, in a hurry, that's a formula field over the top of it, and it contains " "

Suppress it with not(isnull({eeCustomData.Field2}))

and your table field suppression is:

isnull({eeCustomData.Field2})

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top