Transentient
Registered User.
- Local time
- Today, 05:05
- Joined
- Sep 25, 2007
- Messages
- 31
Not sure If i am posting in right place, so apologies.
Essentially i have a table which contains company name, contact name and email address. I have a form which I can select those contacts to send an email to. I have all the code to construct and send the email.
There maybe multiple contacts and thus email addresses for some companies, and only one contact etc for others. Now rather than send individual emails to each one on the list, i am looking to try and group multiple contacts for a specific company onto one email. I have initially used a query on the table which looks at the company name and whether to send, with the user providing the company name for the query parameter. the email is then contructed for all those contacts selected for that company.
What I would like to do is somehow get the program to automatically group contacts for me.
My ideas thus far are
Each company is intentified with a unique code
The program looks at the first code in the list and automitcally inserts and runs the above mentioned query
It then moves to the next code, if this is the same as the previous code it moves to the next code. If the code is new it runs the query etc.
Essentially how do i extract the company code from record 1?, then move to next record and extract the company code for record2? and then compare against record1?
Everything else i can do.
thanx for any help
Essentially i have a table which contains company name, contact name and email address. I have a form which I can select those contacts to send an email to. I have all the code to construct and send the email.
There maybe multiple contacts and thus email addresses for some companies, and only one contact etc for others. Now rather than send individual emails to each one on the list, i am looking to try and group multiple contacts for a specific company onto one email. I have initially used a query on the table which looks at the company name and whether to send, with the user providing the company name for the query parameter. the email is then contructed for all those contacts selected for that company.
What I would like to do is somehow get the program to automatically group contacts for me.
My ideas thus far are
Each company is intentified with a unique code
The program looks at the first code in the list and automitcally inserts and runs the above mentioned query
It then moves to the next code, if this is the same as the previous code it moves to the next code. If the code is new it runs the query etc.
Essentially how do i extract the company code from record 1?, then move to next record and extract the company code for record2? and then compare against record1?
Everything else i can do.
thanx for any help