W
WDSnews
[End Time] is a text field in the [Classes Proposed] table.
This query
SELECT [Classes Proposed].ID, DatePart("h",[Classes Proposed].[End Time]) AS
EndHour
FROM [Classes Proposed]
WHERE (((DatePart("h",[Classes Proposed].[End Time]))<6));
and this query
SELECT [Classes Proposed].ID, DatePart("h",CDate([Classes Proposed].[End
Time])) AS EndHour
FROM [Classes Proposed]
WHERE (((DatePart("h",CDate([Classes Proposed].[End Time])))<6));
work as soon as I remove the WHERE clause. However, with the criteria I get
this error
"Data type mismatch in criteria expression".
Why is <6 in the criteria line giving me trouble?
This query
SELECT [Classes Proposed].ID, DatePart("h",[Classes Proposed].[End Time]) AS
EndHour
FROM [Classes Proposed]
WHERE (((DatePart("h",[Classes Proposed].[End Time]))<6));
and this query
SELECT [Classes Proposed].ID, DatePart("h",CDate([Classes Proposed].[End
Time])) AS EndHour
FROM [Classes Proposed]
WHERE (((DatePart("h",CDate([Classes Proposed].[End Time])))<6));
work as soon as I remove the WHERE clause. However, with the criteria I get
this error
"Data type mismatch in criteria expression".
Why is <6 in the criteria line giving me trouble?