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 » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Criteria issue for limiting a query



 
 
Thread Tools Display Modes
  #1  
Old July 16th, 2008, 08:35 PM posted to microsoft.public.access.queries
Antavas
external usenet poster
 
Posts: 32
Default Criteria issue for limiting a query

I have built a query1 that allows me to enter a date range for when an issue
is opened. I then built another query2 off of that one using these criteria:

[Please Enter Prior Date] and [Please Enter Post Date]

My goal is to have this query return all issues opened before the date range
I specify in query1 and that did not close before the end of that date range.
It does work except that will only return the items that have a closed date.
It won't capture the ones that remain open and do not have a close date. What
can I do to modify this criteria: [Please Enter Post Date] under the closed
date so that it returns everything I need?
  #2  
Old July 16th, 2008, 08:57 PM posted to microsoft.public.access.queries
KARL DEWEY
external usenet poster
 
Posts: 10,767
Default Criteria issue for limiting a query

Try this --
[Please Enter Prior Date] and [Please Enter Post Date] OR Is Null

I prefer using --
Between [Please Enter Prior Date] and [Please Enter Post Date] OR Is Null
as it includes the date entered also when they do not have time associated
with them.
--
KARL DEWEY
Build a little - Test a little


"Antavas" wrote:

I have built a query1 that allows me to enter a date range for when an issue
is opened. I then built another query2 off of that one using these criteria:

[Please Enter Prior Date] and [Please Enter Post Date]

My goal is to have this query return all issues opened before the date range
I specify in query1 and that did not close before the end of that date range.
It does work except that will only return the items that have a closed date.
It won't capture the ones that remain open and do not have a close date. What
can I do to modify this criteria: [Please Enter Post Date] under the closed
date so that it returns everything I need?

  #3  
Old July 16th, 2008, 09:43 PM posted to microsoft.public.access.queries
Antavas
external usenet poster
 
Posts: 32
Default Criteria issue for limiting a query

Thanks! It worked!

"KARL DEWEY" wrote:

Try this --
[Please Enter Prior Date] and [Please Enter Post Date] OR Is Null

I prefer using --
Between [Please Enter Prior Date] and [Please Enter Post Date] OR Is Null
as it includes the date entered also when they do not have time associated
with them.
--
KARL DEWEY
Build a little - Test a little


"Antavas" wrote:

I have built a query1 that allows me to enter a date range for when an issue
is opened. I then built another query2 off of that one using these criteria:

[Please Enter Prior Date] and [Please Enter Post Date]

My goal is to have this query return all issues opened before the date range
I specify in query1 and that did not close before the end of that date range.
It does work except that will only return the items that have a closed date.
It won't capture the ones that remain open and do not have a close date. What
can I do to modify this criteria: [Please Enter Post Date] under the closed
date so that it returns everything I need?

 




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 01:16 PM.


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