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 modification



 
 
Thread Tools Display Modes
  #1  
Old February 13th, 2007, 03:41 PM posted to microsoft.public.access.queries
CurtH
external usenet poster
 
Posts: 2
Default Query modification

I have the current query which works:

Dental Status: IIf([IMRDental Age Month] ="9","90 Days or Before DentalDue
Notification",IIf([IMRDental Age Month]="12","Annual Dental Exam
OverDue",IIf([IMRDental Age Month]="16","Mbr At Risk of 4T Profile after Next
UTA")))

However, I want to modify the query to incorporation a range for example:
= 9 and =12
=13 and ,=15
=16


Any guidance would be appreciated.

Thanks in advance.
  #2  
Old February 13th, 2007, 04:34 PM posted to microsoft.public.access.queries
Jason Lepack
external usenet poster
 
Posts: 600
Default Query modification

I am concerned about your choice of using strings to represent
numbers, this soultion would work with numbers but not strings because
in Access "12" "8" because "8" "1"

Dental Status: IIf([IMRDental Age Month]16,"Mbr At Risk of 4T Profile
after Next
UTA", IIf([IMRDental Age Month]12,"Annual Dental Exam OverDue",
IIf([IMRDental Age Month] 8,"90 Days or Before DentalDue
Notification", "")))

On Feb 13, 10:41 am, CurtH wrote:
I have the current query which works:

Dental Status: IIf([IMRDental Age Month] ="9","90 Days or Before DentalDue
Notification",IIf([IMRDental Age Month]="12","Annual Dental Exam
OverDue",IIf([IMRDental Age Month]="16","Mbr At Risk of 4T Profile after Next
UTA")))

However, I want to modify the query to incorporation a range for example:

= 9 and =12
=13 and ,=15
=16


Any guidance would be appreciated.

Thanks in advance.



  #3  
Old February 13th, 2007, 05:01 PM posted to microsoft.public.access.queries
CurtH
external usenet poster
 
Posts: 2
Default Query modification

I'm not opposed to any suggestions you may have. I'm relatively new to
access and use what I know. The field in questions has a numeric value.
each category represents a range within that field.

"Jason Lepack" wrote:

I am concerned about your choice of using strings to represent
numbers, this soultion would work with numbers but not strings because
in Access "12" "8" because "8" "1"

Dental Status: IIf([IMRDental Age Month]16,"Mbr At Risk of 4T Profile
after Next
UTA", IIf([IMRDental Age Month]12,"Annual Dental Exam OverDue",
IIf([IMRDental Age Month] 8,"90 Days or Before DentalDue
Notification", "")))

On Feb 13, 10:41 am, CurtH wrote:
I have the current query which works:

Dental Status: IIf([IMRDental Age Month] ="9","90 Days or Before DentalDue
Notification",IIf([IMRDental Age Month]="12","Annual Dental Exam
OverDue",IIf([IMRDental Age Month]="16","Mbr At Risk of 4T Profile after Next
UTA")))

However, I want to modify the query to incorporation a range for example:

= 9 and =12
=13 and ,=15
=16


Any guidance would be appreciated.

Thanks in advance.




  #4  
Old February 13th, 2007, 05:28 PM posted to microsoft.public.access.queries
Jason Lepack
external usenet poster
 
Posts: 600
Default Query modification

The field in questions has a numeric value.
Really? [IMR Dental Month]?

[IMR Dental Month], based on the fact that your initial query works,
is a text field. If you
want it to use it like a number then it should be a number.

If it is a number then the iif statement that I gave you should work
fine.

Cheers,
Jason Lepack

On Feb 13, 12:01 pm, CurtH wrote:
I'm not opposed to any suggestions you may have. I'm relatively new to
access and use what I know. The field in questions has a numeric value.
each category represents a range within that field.



"Jason Lepack" wrote:
I am concerned about your choice of using strings to represent
numbers, this soultion would work with numbers but not strings because
in Access "12" "8" because "8" "1"


Dental Status: IIf([IMRDental Age Month]16,"Mbr At Risk of 4T Profile
after Next
UTA", IIf([IMRDental Age Month]12,"Annual Dental Exam OverDue",
IIf([IMRDental Age Month] 8,"90 Days or Before DentalDue
Notification", "")))


On Feb 13, 10:41 am, CurtH wrote:
I have the current query which works:


Dental Status: IIf([IMRDental Age Month] ="9","90 Days or Before DentalDue
Notification",IIf([IMRDental Age Month]="12","Annual Dental Exam
OverDue",IIf([IMRDental Age Month]="16","Mbr At Risk of 4T Profile after Next
UTA")))


However, I want to modify the query to incorporation a range for example:


= 9 and =12
=13 and ,=15
=16


Any guidance would be appreciated.


Thanks in advance.- Hide quoted text -


- Show quoted text -



 




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:13 AM.


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