robertsquestion
Technical User
Hi,
I'm using MS Access 2003. Table 'T_discount' has got following fields:
Customer
Brand
From_week
To_week
So following records are in the table:
A - X - 2 - 6
A - Y - 7 - 8
B - X - 3 - 5
B - Y - 4 - 9
B - Z - 1 - 5
So in the table the discount periods per customer per brand are maintained.
Now I'm looking for a report that displays the Customer and Brands in rows and the weeks in columns. There should be 1 column per week in the report (even if there are no discounts in that week), so it should just display all weeks in the current year. If there is a discount period for a customer, the weeks from this period should be 'marked' (for example with a specific color).
So for the first record (A - X - 2 - 6), I would like to see 5 red cells on the row for customer A and Brand X (weeks 2, 3, 4, 5 and 6).
Defining a color per record according to a new field 'color_code' in tabel T_discount would even be better, but let's start with the simple version..
I hope my explanation is clear and someone out there knows a solution for this question.
Thanks in advance!
Robert van der Berg
The Netherlands
I'm using MS Access 2003. Table 'T_discount' has got following fields:
Customer
Brand
From_week
To_week
So following records are in the table:
A - X - 2 - 6
A - Y - 7 - 8
B - X - 3 - 5
B - Y - 4 - 9
B - Z - 1 - 5
So in the table the discount periods per customer per brand are maintained.
Now I'm looking for a report that displays the Customer and Brands in rows and the weeks in columns. There should be 1 column per week in the report (even if there are no discounts in that week), so it should just display all weeks in the current year. If there is a discount period for a customer, the weeks from this period should be 'marked' (for example with a specific color).
So for the first record (A - X - 2 - 6), I would like to see 5 red cells on the row for customer A and Brand X (weeks 2, 3, 4, 5 and 6).
Defining a color per record according to a new field 'color_code' in tabel T_discount would even be better, but let's start with the simple version..
I hope my explanation is clear and someone out there knows a solution for this question.
Thanks in advance!
Robert van der Berg
The Netherlands