If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Creating a "Greater Than Date" criterion
I have created a query, all the fields from an existing table.
One field has a date format. I want to select for records in which that field contains data. I tried "01/01/2000", but no joy. Message was "Data type mismatch in query expression." This is the way to create this criteria, AFAICT in the Help file, where it shows '01 Jan 1995' as the proper way to select for later dates than that one. But mine doesn't work. Thanks in advance. Don. |
#2
|
|||
|
|||
Creating a "Greater Than Date" criterion
Dates need tobe delimited with #, not quotes.
Try #01/01/2000# or #01 Jan 1995# -- Doug Steele, Microsoft Access MVP http://www.AccessMVP.com/DJSteele (no e-mails, please!) "PlarfySoober" wrote in message ... I have created a query, all the fields from an existing table. One field has a date format. I want to select for records in which that field contains data. I tried "01/01/2000", but no joy. Message was "Data type mismatch in query expression." This is the way to create this criteria, AFAICT in the Help file, where it shows '01 Jan 1995' as the proper way to select for later dates than that one. But mine doesn't work. Thanks in advance. Don. |
#3
|
|||
|
|||
Creating a "Greater Than Date" criterion
Just as you said. And the Help file is wrong, because it makes no mention of
using ## instead of '' or "". Thank you very much. "Douglas J. Steele" wrote: Dates need tobe delimited with #, not quotes. Try #01/01/2000# or #01 Jan 1995# -- Doug Steele, Microsoft Access MVP http://www.AccessMVP.com/DJSteele (no e-mails, please!) "PlarfySoober" wrote in message ... I have created a query, all the fields from an existing table. One field has a date format. I want to select for records in which that field contains data. I tried "01/01/2000", but no joy. Message was "Data type mismatch in query expression." This is the way to create this criteria, AFAICT in the Help file, where it shows '01 Jan 1995' as the proper way to select for later dates than that one. But mine doesn't work. Thanks in advance. Don. . |
Thread Tools | |
Display Modes | |
|
|