PC Review


Reply
Thread Tools Rate Thread

Calculation for an Access Report

 
 
Thiazi
Guest
Posts: n/a
 
      2nd Apr 2007
I have a unique calculation I need to produce and have the results
appear on an Access Report. I need to take the value of a value in a
column and essentially do the following:

if the value in the column is 15 - 20, assign a point value of 1
if the value in the column is 21 - 25, assign a point value of 2
if the value of the column is 26 - 30, assign a point value of 3

The column value will appear on the Access Report regardless, and I
need the point value to appear as well. How would I perform this
calculation in Access? I know in Excel I can perform it with the
LOOKUP command.

 
Reply With Quote
 
 
 
 
=?Utf-8?B?V2F5bmUtSS1N?=
Guest
Posts: n/a
 
      2nd Apr 2007
Hi

Create an unbound box in the details of the report and use something like

= IIf([Value] Between 15 And 20,1,IIf([Value] Between 21 And
25,2,IIf([Value] Between 26 And 30,3)))

Notes = Value in the about source is the name of the field you are refering
to. Change this to what it is in your report
I take it that the value will always be somewhere between 15 and 30. If not
your will need to alter the above and add a value after the last 3 -
like this 3,Something)))

--
Wayne
Manchester, England.



"Thiazi" wrote:

> I have a unique calculation I need to produce and have the results
> appear on an Access Report. I need to take the value of a value in a
> column and essentially do the following:
>
> if the value in the column is 15 - 20, assign a point value of 1
> if the value in the column is 21 - 25, assign a point value of 2
> if the value of the column is 26 - 30, assign a point value of 3
>
> The column value will appear on the Access Report regardless, and I
> need the point value to appear as well. How would I perform this
> calculation in Access? I know in Excel I can perform it with the
> LOOKUP command.
>
>

 
Reply With Quote
 
Thiazi
Guest
Posts: n/a
 
      2nd Apr 2007
I should have posted with this - I accomplish this in excel with
=LOOKUP(cell name,{15,21,26},{1,2,3})

What is the access equivalent the =LOOKUP command in Excel to do this?


Thiazi wrote:
> I have a unique calculation I need to produce and have the results
> appear on an Access Report. I need to take the value of a value in a
> column and essentially do the following:
>
> if the value in the column is 15 - 20, assign a point value of 1
> if the value in the column is 21 - 25, assign a point value of 2
> if the value of the column is 26 - 30, assign a point value of 3
>
> The column value will appear on the Access Report regardless, and I
> need the point value to appear as well. How would I perform this
> calculation in Access? I know in Excel I can perform it with the
> LOOKUP command.


 
Reply With Quote
 
Thiazi
Guest
Posts: n/a
 
      3rd Apr 2007
On Apr 2, 3:36 pm, "Thiazi" <thi...@gmail.com> wrote:
> I should have posted with this - I accomplish this in excel with
> =LOOKUP(cell name,{15,21,26},{1,2,3})
>
> What is the access equivalent the =LOOKUP command in Excel to do this?
>
>
>
> Thiazi wrote:
> > I have a unique calculation I need to produce and have the results
> > appear on an Access Report. I need to take the value of a value in a
> > column and essentially do the following:

>
> > if the value in the column is 15 - 20, assign a point value of 1
> > if the value in the column is 21 - 25, assign a point value of 2
> > if the value of the column is 26 - 30, assign a point value of 3

>
> > The column value will appear on the Access Report regardless, and I
> > need the point value to appear as well. How would I perform this
> > calculation in Access? I know in Excel I can perform it with the
> > LOOKUP command.- Hide quoted text -

>
> - Show quoted text -


Is this not possible?

 
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
Calculation Error on Access 03 Report kerch17 General Software 1 28th Feb 2010 05:35 PM
Access Report Calculation Pilgrim_828 Microsoft Access Reports 2 13th Jun 2009 08:46 PM
Access Report Calculation =?Utf-8?B?QXBleA==?= Microsoft Access Reports 2 29th Oct 2004 05:01 PM
Calculation for report Ron Greenbank Microsoft Access Reports 1 10th Feb 2004 09:30 PM
Grouping an Access report by a calculation/expression Christopher Dean Microsoft Access Reports 2 27th Aug 2003 02:01 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:57 AM.