M
mrlewis52
I have a SQL database that I have an external data link to an access database.
I need to search records based on the current date.
The problem is that the field that needs to be searched is in a text format
"yyyy-mm-dd". I have used the following statement successfully to pull out
current year:
Left([ArrestDate],4)=DatePart("yyyy",Date()).
This does pull off any records with the 2010 year. However, I need to sort by
the entire date.
How can I do this?
I have tried the following hoping it would put a string together but I get an
"Invalid Procedure Call" error.
I need to search records based on the current date.
The problem is that the field that needs to be searched is in a text format
"yyyy-mm-dd". I have used the following statement successfully to pull out
current year:
Left([ArrestDate],4)=DatePart("yyyy",Date()).
This does pull off any records with the 2010 year. However, I need to sort by
the entire date.
How can I do this?
I have tried the following hoping it would put a string together but I get an
"Invalid Procedure Call" error.