CDate returning #Error (1 Viewer)

David Ball

Registered User.
Local time
Today, 09:52
Joined
Aug 9, 2010
Messages
230
Hi,

I use CDate() in a query calculated field to convert text to date format.

The problem is that for records that don't have a date it returns #Error.

Then my report crashes when I sort by date.

Is there a way to use CDate and not get the #Error?

Thanks very much

Dave
 

Galaxiom

Super Moderator
Staff member
Local time
Today, 10:22
Joined
Jan 20, 2009
Messages
12,854
Code:
=iif(isdate([field], CDate([field]), Null)
 

Users who are viewing this thread

Top Bottom