How To Query for Dates Using a SQL Statement in Visual Basic (105173)
The information in this article applies to:
- Microsoft Visual Basic Professional Edition, 16-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 16-bit, for Windows 4.0
- Microsoft Visual Basic Standard Edition for Windows 3.0
- Microsoft Visual Basic Professional Edition for Windows 3.0
This article was previously published under Q105173 SUMMARY
When you query for Dates in a Microsoft Access database, you may receive
an incorrect result or a 'Type Mismatch' error message. To query for a
date in a SQL statement in Visual Basic for Windows, enclose the date in
pound signs (#).
NOTE: This article shows dates written in American format (MM/DD/YYYY). For
example, 12/31/1960.
Modification Type: | Minor | Last Reviewed: | 6/14/2005 |
---|
Keywords: | kbhowto KB105173 |
---|
|