K
Kevin3NF
I have a datetime field in SQL Server. I want to query on this field in my .mdb using an unbound text box on a form as criteria. Some of my records have date, some date and time, which causes a problem, as the criteria is entered as date only.
This brings back all records, but is not sortable (Data type mismatch in criteria expression)
SELECT DateValue([DateCalledIn])
FROM Transactions;
This is what I really want:
SELECT DateValue([DateCalledIn]) AS Expr1
FROM Transactions
WHERE (((DateValue([DateCalledIn]))=[Forms]![Transaction Reports]![LocationCardPrintDate]));
but I get "The expression is typed incorrectly or it is too complex to be evaluated....."
SQL 2000 sp3, Access XP in 2000 file format, recently converted form 2.0.
Anyone see what I am doing wrong?
--
Kevin Hill
President
3NF Consulting
www.3nf-inc.com
This brings back all records, but is not sortable (Data type mismatch in criteria expression)
SELECT DateValue([DateCalledIn])
FROM Transactions;
This is what I really want:
SELECT DateValue([DateCalledIn]) AS Expr1
FROM Transactions
WHERE (((DateValue([DateCalledIn]))=[Forms]![Transaction Reports]![LocationCardPrintDate]));
but I get "The expression is typed incorrectly or it is too complex to be evaluated....."
SQL 2000 sp3, Access XP in 2000 file format, recently converted form 2.0.
Anyone see what I am doing wrong?
--
Kevin Hill
President
3NF Consulting
www.3nf-inc.com