Results 1 to 3 of 3
  1. #1
    bobi123 is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Oct 2012
    Posts
    2

    Unhappy Split a table

    Hello,



    please help me with this problem...

    have a table with 1.000.000 records, and I would like to put them into excel file, so first i would like to split the table into 4 equally big tables then export it into excel. I know how to export I just need help with splitting the 1 table.

    example of the table1, three columns:

    I Name I Surname I Phone I

    can someone help with SQL? I am thankfull alot for the help!thank you!!

  2. #2
    bobi123 is offline Novice
    Windows XP Access 2007
    Join Date
    Oct 2012
    Posts
    2
    I have access 2007

  3. #3
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    If you add an Autonumber field, then each record should have an identifier from 1 to 1,000,000.
    Then, you can create a query and place criteria on your Autonumber field to just pull out the subset you want. As matter as fact, if you make this a parameter query, it will prompt you for the numbers at run-time, i.e. place this as the criteria under the Autonumber field in your query:
    Code:
    Between [enter lower limit] and [enter upper limit]
    Then when you run it, if you enter 1 for the first prompt and 250000 for the second prompt, it will return the first 250000 records.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 9
    Last Post: 12-19-2011, 06:30 PM
  2. Replies: 1
    Last Post: 12-18-2011, 01:52 AM
  3. Replies: 1
    Last Post: 12-01-2010, 11:01 AM
  4. making a table from a filtered split form
    By stephenaa5 in forum Queries
    Replies: 2
    Last Post: 08-25-2010, 08:56 PM
  5. Split a table into related tables
    By triley01 in forum Database Design
    Replies: 1
    Last Post: 03-12-2009, 02:38 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums