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  

Query Criteria



 
 
Thread Tools Display Modes
  #1  
Old April 28th, 2010, 11:41 PM posted to microsoft.public.access.queries
ladybug via AccessMonster.com
external usenet poster
 
Posts: 105
Default Query Criteria

I have a query where I am trying to get a count of items. The first column
is:
Less than 10: (IIf([Days in Queue]10,""))
This gives a count for each queue that has been under 10 days and is working
correctly.

I cannot get the criteria to work for the # ranges after that. I want it to
return the count for anything that has been in queue for 10 to 20 days. I
know what I have below does not work. I need something for the =10-20 part.
Right now I get all zeros returned.
10-20: (IIf([Days in Queue]=10-20,""))

Please help!

--
Message posted via http://www.accessmonster.com

  #2  
Old April 29th, 2010, 04:10 PM posted to microsoft.public.access.queries
Daryl S[_2_]
external usenet poster
 
Posts: 881
Default Query Criteria

Ladybug -

Try this criteria (this includes the values 10 and 20, so if you really want
10-19, then change the 20 to 19:

([Days in Queue] Between 10 AND 20)


--
Daryl S


"ladybug via AccessMonster.com" wrote:

I have a query where I am trying to get a count of items. The first column
is:
Less than 10: (IIf([Days in Queue]10,""))
This gives a count for each queue that has been under 10 days and is working
correctly.

I cannot get the criteria to work for the # ranges after that. I want it to
return the count for anything that has been in queue for 10 to 20 days. I
know what I have below does not work. I need something for the =10-20 part.
Right now I get all zeros returned.
10-20: (IIf([Days in Queue]=10-20,""))

Please help!

--
Message posted via http://www.accessmonster.com

.

  #3  
Old April 29th, 2010, 05:41 PM posted to microsoft.public.access.queries
ladybug via AccessMonster.com
external usenet poster
 
Posts: 105
Default Query Criteria

Perfect! Thank you for your helping!

Daryl S wrote:
Ladybug -

Try this criteria (this includes the values 10 and 20, so if you really want
10-19, then change the 20 to 19:

([Days in Queue] Between 10 AND 20)

I have a query where I am trying to get a count of items. The first column
is:

[quoted text clipped - 9 lines]

Please help!


--
Message posted via http://www.accessmonster.com

  #4  
Old April 29th, 2010, 05:41 PM posted to microsoft.public.access.queries
ladybug via AccessMonster.com
external usenet poster
 
Posts: 105
Default Query Criteria

Perfect! Thank you for helping!

Daryl S wrote:
Ladybug -

Try this criteria (this includes the values 10 and 20, so if you really want
10-19, then change the 20 to 19:

([Days in Queue] Between 10 AND 20)

I have a query where I am trying to get a count of items. The first column
is:

[quoted text clipped - 9 lines]

Please help!


--
Message posted via http://www.accessmonster.com

 




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 06:26 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.