I have three fields,
coursestartdate, courseplannedenddate and a calculated field which uses both date fields.
Doc6Overdue: IIf(DateAdd("d",(([courseplannedenddate]-[coursestartdate])/5),[coursestartdate])<=Date(),"overdue","notoverdue").
This query works well and correctly gives overdue or notoverdue or if there is no date it gives Error.
I need to put overdue in the criteria line as I only need to see the overdue records, but when a date is missing I get he message Data mismatch in criteria expression. I really dont know where to start in solving this,how can I overcome this happening should a date be missing?
Any help greatly appreciated
Marion
coursestartdate, courseplannedenddate and a calculated field which uses both date fields.
Doc6Overdue: IIf(DateAdd("d",(([courseplannedenddate]-[coursestartdate])/5),[coursestartdate])<=Date(),"overdue","notoverdue").
This query works well and correctly gives overdue or notoverdue or if there is no date it gives Error.
I need to put overdue in the criteria line as I only need to see the overdue records, but when a date is missing I get he message Data mismatch in criteria expression. I really dont know where to start in solving this,how can I overcome this happening should a date be missing?
Any help greatly appreciated
Marion