Solved

Access Table Divide into 2 or more tables equally

Posted on 2013-01-18
4
489 Views
Last Modified: 2013-01-18
I have an access holding table that contains any number of records any given day. Could be 20 could be 50 plus I never know.

Is there a way by access queries to divide it up evenly - say I have 50 records in the holding table and I want to send half to table 3 and half to table 4 ?
0
Comment
Question by:Stephen Roesner
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 26

Expert Comment

by:jerryb30
ID: 38793911
Is there a unique identifier?
What is decision point for making more than 2 tables?
0
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 38793923
create query like this

select top 50 percent * from tablex

select top 50 percent * from tablex
where [id] not in (select top 50 percent [id] from tablex as T)


try those queries and when satisfied, convert them to a MAKE table query
0
 
LVL 120

Accepted Solution

by:
Rey Obrero (Capricorn1) earned 500 total points
ID: 38794021
here are the make table queries


SELECT TOP 50 PERCENT T.* INTO Table3
FROM TableX As T


SELECT T.* INTO Table4
FROM decontact_tbl AS T
WHERE (((T.ID) Not In (SELECT TOP 50 PERCENT T2.ID
FROM decontact_tbl AS T2)));
0
 

Author Comment

by:Stephen Roesner
ID: 38794829
wow you are one smart cookie - works like a charm thank you so much
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

690 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question