SimonCleaver
IS-IT--Management
I have a form for my customer details.
I need to record when a brochure was sent to a customer. I have more than 20 different brochures and a customer may receive one, all, some or none of these.
I also need to be able to run a report/query for each brochure manufacturer to tell them which customers have been sent their specific brochure.
So I need to store on a customer record:
1) which brochure(s) they have been sent
2) the date this was sent
3) to be able to send a regular report to the manufacturer a list of customers (but not repeating customers details on subsequents lists) presumably by running a query.
Up to now I have put 20 date fields on my customer table, each named by the brochure title. So when I send a customer a brochure i put the date in this field.
I have then 20 individual queries each asking for a list of customers by date (criteria being: the day after the last date the query was run TO todays date).
This works ok - but each time I want to run the queries I have to manually change the criteria dates in all the queries.
I was thinking about putting another YES/NO field next to the dates boxes to specify that the registration had been made and then the query could be: select all records that have ANY date but do not have a YES in the yes /no field. But then I need to manually change all these records to update the yes/no field to a yes. If I use an updatequery, I have to make 20 different update queries.
Confused? so am I!!!! Any advice is very gratefully received.
I need to record when a brochure was sent to a customer. I have more than 20 different brochures and a customer may receive one, all, some or none of these.
I also need to be able to run a report/query for each brochure manufacturer to tell them which customers have been sent their specific brochure.
So I need to store on a customer record:
1) which brochure(s) they have been sent
2) the date this was sent
3) to be able to send a regular report to the manufacturer a list of customers (but not repeating customers details on subsequents lists) presumably by running a query.
Up to now I have put 20 date fields on my customer table, each named by the brochure title. So when I send a customer a brochure i put the date in this field.
I have then 20 individual queries each asking for a list of customers by date (criteria being: the day after the last date the query was run TO todays date).
This works ok - but each time I want to run the queries I have to manually change the criteria dates in all the queries.
I was thinking about putting another YES/NO field next to the dates boxes to specify that the registration had been made and then the query could be: select all records that have ANY date but do not have a YES in the yes /no field. But then I need to manually change all these records to update the yes/no field to a yes. If I use an updatequery, I have to make 20 different update queries.
Confused? so am I!!!! Any advice is very gratefully received.