What is Date/Time format in SQL string statements?
From: SROSeaner (SROSeaner_at_discussions.microsoft.com)
Date: 06/23/04
- Next message: anonymous_at_discussions.microsoft.com: "Re: Use of Last function in a query"
- Previous message: Jeff Boyce: "Re: Unmatched Query"
- Next in thread: Rick Brandt: "Re: What is Date/Time format in SQL string statements?"
- Reply: Rick Brandt: "Re: What is Date/Time format in SQL string statements?"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 23 Jun 2004 07:03:02 -0700
I am trying to search my access database by date, to determine who has first aid credentials and what date they received them.
I am building an SQL query string in VBA code, and can't figure out the format to use for date searching.
When I open a report from within VBA, the where clause contains the following:
FirstAid=20041212
And it returns no results in the report even though somebody in the db table has the date 12/12/2004. I have tried the where clause as follows with no results either:
FirstAid=12/12/2004
Please help!
- Next message: anonymous_at_discussions.microsoft.com: "Re: Use of Last function in a query"
- Previous message: Jeff Boyce: "Re: Unmatched Query"
- Next in thread: Rick Brandt: "Re: What is Date/Time format in SQL string statements?"
- Reply: Rick Brandt: "Re: What is Date/Time format in SQL string statements?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|