Quantcast
Channel: VBForums - ASP, VB Script
Viewing all articles
Browse latest Browse all 681

Making MS Access Table Split into multiple tables based on field value

$
0
0
I have a table that tells me what people are ordering off of my website, who manufactures what they are ordering, and some personal information about the customer (address, name, etc). I want to make a query or VBA program that separates my table into multiple tables (one for each manufacturer) and then exports those tables to excel and emails the manufacturers. I'm very new to this, but I'm thinking that VBA would be best because it allows me to automatically email the manufacturers through Outlook. Can someone give me a skeleton code to start off with or point me towards VBA methods that would allow me to make those new "manufacturer tables?" I think the steps involved in making those would be. 1) Export distinct manufacturers to another table. 2) Find # of distinct manufacturers in the new table. 3) Make loop that loops through the "orders table" #of Manufacturers times and makes the new tables based on criteria that comes from the "List of manufacturers table." Thoughts?

Thanks,
TEB

Viewing all articles
Browse latest Browse all 681

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>