CDate returning #Error

David Ball

Registered User.
Local time
Today, 20:04
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
 
Code:
=iif(isdate([field], CDate([field]), Null)
 

Users who are viewing this thread

Back
Top Bottom