batman1056
Registered User.
- Local time
- Today, 21:54
- Joined
- Aug 23, 2004
- Messages
- 37
backgound:-
I have a report that lists people from different areas i.e (field called : district)
Newcastle
Sunderland
In each line of data it will show if that person has for example been to event A,B or C (yes/No) Fields called (A,B,C)
Is it possible to include a formula at the end of this line to check the area then to check the A,B,C and produce a value. The values of ABC are depended on the area
Example
Costs Newcastle
A=£100
B=£150
C=£78
Costs Sunderland
A=£85
B=£132
C=£83
So...
If J.Bown from sunderland went to A and C the total at the end would be £168
if K Brown from Newcastle went to C the total would be £78
Not sure how to do this - in excel I would use an if statement but in access not sure how to reference these
=if (A1="newcastle",if A=Yes,100,0)+if (A1="newcastle",if B=yes,150,0)+if (A1="newcastle",if C=yes,78,0), if (A1="sunderland" etc.....
I know the above forumla is not correct but you get the idea what I am trying to do
I have a report that lists people from different areas i.e (field called : district)
Newcastle
Sunderland
In each line of data it will show if that person has for example been to event A,B or C (yes/No) Fields called (A,B,C)
Is it possible to include a formula at the end of this line to check the area then to check the A,B,C and produce a value. The values of ABC are depended on the area
Example
Costs Newcastle
A=£100
B=£150
C=£78
Costs Sunderland
A=£85
B=£132
C=£83
So...
If J.Bown from sunderland went to A and C the total at the end would be £168
if K Brown from Newcastle went to C the total would be £78
Not sure how to do this - in excel I would use an if statement but in access not sure how to reference these
=if (A1="newcastle",if A=Yes,100,0)+if (A1="newcastle",if B=yes,150,0)+if (A1="newcastle",if C=yes,78,0), if (A1="sunderland" etc.....
I know the above forumla is not correct but you get the idea what I am trying to do
Last edited: