Good Day All.
I am applying DateTime function to 2 different fields, both with Date/time data types. However when datetime wraps the values in field 1 every thing works sort of fine, but as soon as values in field 2 is wrapped with the datetime function there is an error message. Below is my Sql code for reference:
My error says: Data type mismatched in criteria selection.
I say sort of fine for field 1 because it has been changing the time entered to a date. Here is the code when field 1 alone is used:
I am applying DateTime function to 2 different fields, both with Date/time data types. However when datetime wraps the values in field 1 every thing works sort of fine, but as soon as values in field 2 is wrapped with the datetime function there is an error message. Below is my Sql code for reference:
Code:
SELECT TimeValue([Schedule Arrival]) AS Expr1, TimeValue([Time Entered by Officer]) AS exp2
FROM tblSignIn INNER JOIN tblSigninDetails ON tblSignIn.tblSigninID = tblSigninDetails.TblsignInID
WHERE (((TimeValue([Schedule Arrival]))=(#11:0:0#)) AND ((TimeValue([Time Entered by Officer]))=(#11:0:0#)));
I say sort of fine for field 1 because it has been changing the time entered to a date. Here is the code when field 1 alone is used:
Code:
SELECT TimeValue([Schedule Arrival]) AS Expr1
FROM tblSignIn
WHERE (((TimeValue([Schedule Arrival]))=(#12/30/1899 11:0:0#)));
Last edited: