A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Access » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Creating a "Greater Than Date" criterion



 
 
Thread Tools Display Modes
  #1  
Old April 15th, 2010, 08:43 PM posted to microsoft.public.access.gettingstarted
PlarfySoober
external usenet poster
 
Posts: 68
Default 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.

Ads
  #2  
Old April 15th, 2010, 08:48 PM posted to microsoft.public.access.gettingstarted
Douglas J. Steele[_3_]
external usenet poster
 
Posts: 3,143
Default 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  
Old April 15th, 2010, 11:36 PM posted to microsoft.public.access.gettingstarted
PlarfySoober
external usenet poster
 
Posts: 68
Default 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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:03 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Copyright 2004-2018 OfficeFrustration.
The comments are property of their posters.