TeriCoombes
Technical User
I am having a problem with my SQL statement. I am trying to query out results in a table based on a date column. However, when I try:
WHERE (dbo.tblTestResults.LastModified = Date())
I get an ADO error that says Date is not a recognized function.
When I try:
WHERE (dbo.tblTestResults.LastModified = GetDate())
then I don't get any results at all when I know there are some. The same thing happens if I try:
WHERE (dbo.TestResults.LastModified = { fn CURDATE() })
Please help.
WHERE (dbo.tblTestResults.LastModified = Date())
I get an ADO error that says Date is not a recognized function.
When I try:
WHERE (dbo.tblTestResults.LastModified = GetDate())
then I don't get any results at all when I know there are some. The same thing happens if I try:
WHERE (dbo.TestResults.LastModified = { fn CURDATE() })
Please help.