PC Review


Reply
Thread Tools Rate Thread

Creating a "Greater Than Date" criterion

 
 
PlarfySoober
Guest
Posts: n/a
 
      15th Apr 2010
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.

 
Reply With Quote
 
 
 
 
Douglas J. Steele
Guest
Posts: n/a
 
      15th Apr 2010
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" <(E-Mail Removed)> wrote in message
news:B5252B24-485E-4D1F-A84A-(E-Mail Removed)...
>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.
>



 
Reply With Quote
 
PlarfySoober
Guest
Posts: n/a
 
      15th Apr 2010
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" <(E-Mail Removed)> wrote in message
> news:B5252B24-485E-4D1F-A84A-(E-Mail Removed)...
> >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.
> >

>
>
> .
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RE: creating a "date selector box" or "pull down box" in a cell Gary''s Student Microsoft Excel Worksheet Functions 0 30th Sep 2009 01:45 AM
Re: creating a "date selector box" or "pull down box" in a cell Pete_UK Microsoft Excel Worksheet Functions 0 30th Sep 2009 01:39 AM
formula to determine if multiple dates are "greater than" one date kg82 Microsoft Excel Worksheet Functions 3 20th Oct 2008 11:09 PM
criterion "question mark" in a new-builded query to show noise-records Medioman Microsoft Access Queries 3 24th Apr 2006 04:18 AM
Turning a row color to "yellow" if one date field is greater than another. Ray Stevens Microsoft Excel Discussion 2 11th Mar 2006 08:46 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:51 PM.