E
Emma Chapman 123
Hi
I have looked at a reply from Allen Browne to someone else but still can't
get my head around the querry.
Please can somebody help me with a querry for this. I have a table which
shows each members test results for each month. On a report that i am
building i need to show the price that the member would get for that
particular test result each month. For example If the result is between 0 &
50 they will receive 0 deductions. If it is between 51 & 60 they will receive
-0.3 pence. There are 23 different bandings for this result.
On my report i need to show it like this below:
200711 200712 200801 200802 200803 200804 200805 200806 200807
Price Price Price Price Price Price Price
Price Price
The actual test results are shown at the top of the report. Each member has
there own report to show the results and prices.
I think that i need a querry to do this but i don't know where to start. If
i was in excel i would use a lookup querry that looks up the bandings table
and looks for the value.
My first table (Bacto 12 month) looks like this
Member Number 200711 200712 200801 200802 200803 200804
016832301 50 69 53 50 53
49
My second table (bacto schedule) looks like this
Bacto ppl
51 -0.3
61 -0.6
71 -0.9
81 -1.2
91 -1.5
101 -1.8
111 -2.1
Please could somebosy help me.
Thanks
Emma
I have looked at a reply from Allen Browne to someone else but still can't
get my head around the querry.
Please can somebody help me with a querry for this. I have a table which
shows each members test results for each month. On a report that i am
building i need to show the price that the member would get for that
particular test result each month. For example If the result is between 0 &
50 they will receive 0 deductions. If it is between 51 & 60 they will receive
-0.3 pence. There are 23 different bandings for this result.
On my report i need to show it like this below:
200711 200712 200801 200802 200803 200804 200805 200806 200807
Price Price Price Price Price Price Price
Price Price
The actual test results are shown at the top of the report. Each member has
there own report to show the results and prices.
I think that i need a querry to do this but i don't know where to start. If
i was in excel i would use a lookup querry that looks up the bandings table
and looks for the value.
My first table (Bacto 12 month) looks like this
Member Number 200711 200712 200801 200802 200803 200804
016832301 50 69 53 50 53
49
My second table (bacto schedule) looks like this
Bacto ppl
51 -0.3
61 -0.6
71 -0.9
81 -1.2
91 -1.5
101 -1.8
111 -2.1
Please could somebosy help me.
Thanks
Emma