473,396 Members | 1,813 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Split master table into smaller tables

I have a master table with over 300,000 records that i need to split
into 500+ smaller tables. I have a branch field in the master that i
can use as an identifier. I even created a branch table that lists all
the 500+ branches that i have. Basically i want to create these new
tables and then export them into 500+ xls. files. Is there a VB routine

that someone might have to facilitate this. Thanks!

Nov 13 '05 #1
1 2706
Not really. Maybe the easiest way is to create a unique values query
on the BranchID and write that to a new table. Then you can loop
through thatt table, passing the BranchID to a SELECT query and output
the whole mess to an Excel file. That's infinitely easier than doing
something 500 times... A few things to look at...

Querydefs,
TransferSpreadSheet

Umm...Dev's code for dumping a recordset to Excel using automation...
(I'd start there!)
www.mvps.org/access
Just look up Excel.

Nov 13 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: keys4worship | last post by:
I use Ftp to import a comma delim file. Problem: Day 1 file has 5 records. During the course of Day 1 ,users make changes to a field in the five records. Day 2 has same 5 records as they were...
1
by: Harag | last post by:
Hi all I've not used Access 2k for a few years and can't remember how to get information from one table that is not in several other tables. I have 4 Tables in my DB tbl 1 - TblMaster -...
1
by: HS1 | last post by:
Hello all - I have a master and a details table presented in two datagrid - I also have some text boxes that present the values from any record in the master table. This also helps to enter new...
8
by: Janelle.Dunlap | last post by:
My database is linked to external data from a single Excel spreadsheet. I currently have it so that the entire spreadsheet exports into one table, but really for the purpose of my database it will...
1
by: mohammedirfan | last post by:
how to write a trigger to update a master table?
3
by: Alvin SIU | last post by:
Hi all, I am using DB2 in AIX. I have a master table and a txn table. The master table has many many records. Each month, there is a new txn table.
2
by: pankajnaagar | last post by:
SQL statement with two table one is master and other is transaction and want to get itemname from master table and sum of other field from transaction table.
1
by: jmartmem | last post by:
Greetings, I have a troubleshooting problem that's driving me crazy! I have a form with dozens of controls. One particular control -- a list box -- is synchronized with a combo box such that...
1
by: SirTKC | last post by:
Hi, Here is the following scenario. I do have a master table with related subforms from wich I need to create a revision. But I need to duplicate the content of the subforms and link them to...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.