Sorry for the late response, I've been preoccupied lately.
Thanks Denis for your suggestion. That's something I can use for another project but not what I need for this one. Thanks though!
Hi Norie,
The table name that I'd like to use is "tblTransactions", fields are "RepEmail","RepMgr", "State", "TotalSales". I made the list short to make it simple, I can probably adjust for other fields.
As an example I'll use three reps "Wilma@Acme.com", "Fred@Acme.com", "Barney@Acme.com". Wilma has 10 states to her name, Fred has 15 and Barney has 12. Wilma and Fred are managed by BamBam and while Barney is managed by Pebbles (BamBam and Pebbles is in field "RepMgr"
If the request is for a Access mdb, I'll do the following. I'll create a table from the "tblTransactions" for Wilma, Fred and Barney with criteria by their name, ie I'll create a Make Table Query, bringing in "tblTransactions" drag all the fields to the grid. Under criteria for field "RepEmail" I'll put "Wilma@Acme.com", name the table "tblWilma_todaysdate" then run the query. I'll repeat the process for Fred and Barney. Once that's done I'll create a new blank mdb for each of the rep, ie "WilmaTransactions_todaysdate.mdb" and then import the table I've created ("tblWilma_todaysdate") and repeat for all other reps. Then I go to Outlook and create a new mail message for Wilma copying her manager BamBam and attaching the her mdb. If the mdb exceeds 5mb I zip it up and reattach. I repeat the same process for the other reps. (hope I'm making sense here).
If the request is for Excel, it's the same process as above but instead of creating an mdb I export the table in Excel format and that's what I attach (also zip if more that 5mb).
Hope this help you help me...