The information in this article applies to:
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 (#).
MORE INFORMATIONThe following example code selects every field from the Employees table in the Nwind.mdb sample database where the field Birth Date is greater than 12/31/1960. Nwind.mdb is the Microsoft Access sample database provided with Microsoft Access versions 1.0 and 1.1, and 2.0.
Additional query words:
Keywords : kbVBp300 kbVBp400 |
Last Reviewed: June 21, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |