Link to home
Start Free TrialLog in
Avatar of Asatoma Sadgamaya
Asatoma SadgamayaFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Data type mismatch in criteria expression on Access query

Hi,

I get "Data type mismatch in criteria expression" error message when I run below function.

Date Completed: CDate([QryReportDetail].[Date Completed]).

I can't find anything wrong in the column(Actual there the values are null for this column, still I need to apply this function in case it get values in the future). Also, this function worked fine with other columns with character dates.

Please have a look.

Thanks
K
Avatar of Gustav Brock
Gustav Brock
Flag of Denmark image

If it is a Date field, no CDate is needed:

Date Completed: [QryReportDetail].[Date Completed]

Open in new window

And it can be Null as well.
ASKER CERTIFIED SOLUTION
Avatar of Asatoma Sadgamaya
Asatoma Sadgamaya
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial