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  

Creating an "if then" in a query



 
 
Thread Tools Display Modes
  #1  
Old July 9th, 2009, 02:42 PM posted to microsoft.public.access.queries
Jack at ArcLight
external usenet poster
 
Posts: 6
Default Creating an "if then" in a query

Hi All:

I have a number value for an investment db that corresponds to the
maintenance priority of that investment (priority 1,2 and 3). The higher
priority, the more attention that needs to be paid to the investment.

HR has a method of assigning a workload score to an investment based on its
priority: 1= workload score of 5, 2=3 and 3=1.

Can I create a query that will automatically assign these values to total
for a total workload score without having a separate field to enter the
workload value?

Hope this makes sense.
  #2  
Old July 9th, 2009, 03:01 PM posted to microsoft.public.access.queries
NG[_2_]
external usenet poster
 
Posts: 59
Default Creating an "if then" in a query

Hi Jack:

try the function "choose" syntax: see Access help or help within the
function builder.
--
Kind regards
Noƫlla


"Jack at ArcLight" wrote:

Hi All:

I have a number value for an investment db that corresponds to the
maintenance priority of that investment (priority 1,2 and 3). The higher
priority, the more attention that needs to be paid to the investment.

HR has a method of assigning a workload score to an investment based on its
priority: 1= workload score of 5, 2=3 and 3=1.

Can I create a query that will automatically assign these values to total
for a total workload score without having a separate field to enter the
workload value?

Hope this makes sense.

  #3  
Old July 9th, 2009, 03:55 PM posted to microsoft.public.access.queries
John Spencer MVP
external usenet poster
 
Posts: 533
Default Creating an "if then" in a query

I would create a small table WorkLoadLevel with two fields -
MaintenancePriority (same type of field as maintenance priority in your
current table) and WorkloadScore (Number field)

Then all you need to do is join the current table and this new table together
in your queries and you will automatically have the WorkLoadScore available
for use. Even better if another priority gets added or the workloadScore
changes for a particular priority, you make the change in this table's records
and it will automatically flow to all your queries and reports.

John Spencer
Access MVP 2002-2005, 2007-2009
The Hilltop Institute
University of Maryland Baltimore County

Jack at ArcLight wrote:
Hi All:

I have a number value for an investment db that corresponds to the
maintenance priority of that investment (priority 1,2 and 3). The higher
priority, the more attention that needs to be paid to the investment.

HR has a method of assigning a workload score to an investment based on its
priority: 1= workload score of 5, 2=3 and 3=1.

Can I create a query that will automatically assign these values to total
for a total workload score without having a separate field to enter the
workload value?

Hope this makes sense.

 




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 07:34 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.