Strangeway
Programmer
Hi all,
I have a multi-part question here. I have a database into which I import an Excel spreadsheet containing details of all of my day's shipping information. The table this info is stored in has a relationship to my master customer list which has a list of email addresses. Here's what I want to accomplish:
1. After importing the spreadsheet, I would like Access to loop through the customer ID numbers and create/save the invoices for each customer for new records only (ie. for that day's shipments.)
2. I want Access to loop through the customer list and automatically email that customers invoice to them if they had a shipment that day. If they did not, then it should skip that record.
I am pretty confident I can get step 1 completed on my own (the simple generation of the report.) The only part I might need help with is having Access create a unique file name for each report. Step 2 has me stumped. I know how to generate an email for each record in my table easily enough. The tricky bit is how do I get Access to know which file to attach to each email so that the customer receives the proper invoice?
I have a multi-part question here. I have a database into which I import an Excel spreadsheet containing details of all of my day's shipping information. The table this info is stored in has a relationship to my master customer list which has a list of email addresses. Here's what I want to accomplish:
1. After importing the spreadsheet, I would like Access to loop through the customer ID numbers and create/save the invoices for each customer for new records only (ie. for that day's shipments.)
2. I want Access to loop through the customer list and automatically email that customers invoice to them if they had a shipment that day. If they did not, then it should skip that record.
I am pretty confident I can get step 1 completed on my own (the simple generation of the report.) The only part I might need help with is having Access create a unique file name for each report. Step 2 has me stumped. I know how to generate an email for each record in my table easily enough. The tricky bit is how do I get Access to know which file to attach to each email so that the customer receives the proper invoice?