Results 1 to 7 of 7
  1. #1
    DaveC is offline Novice
    Windows XP Access 2002
    Join Date
    Jun 2014
    Location
    Connecticut USA
    Posts
    17

    Query by record position in table

    Is it possible to retrieve records by their position within the table? For instance, if I wanted the first 10,000 records or the second 10,000 records etc.



    Thanks.

  2. #2
    burrina's Avatar
    burrina is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    You do so by setting the Column Variable. I don't understand the reasoning behind this though!

  3. #3
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    burrina, what is Column Variable?

    An Access table is not like Excel spreadsheet. Basically, records do not have a 'position' in table. Think of table as a bucket. And records like lego blocks dropped in bucket. If you want the records/blocks displayed in a particular order, must apply sort criteria.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  4. #4
    DaveC is offline Novice
    Windows XP Access 2002
    Join Date
    Jun 2014
    Location
    Connecticut USA
    Posts
    17
    My issue is that I have a very large table in an Oracle database that I want to copy into Access, but that will result in a file that's bigger than Access can handle. I figured that I could break the table up into smaller pieces by doing make table queries on some set of criteria, but there is no row ID or autonumber column in the table that I can select on. Don't know how I'm going to do this, looking for ideas.

  5. #5
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Need some criteria - a date or alpha grouping.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  6. #6
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Can the Oracle table be export as a CSV file?
    Then you could use VBA to open the CSV file and import the records until you reach a max number - row count, file size, whatever.
    Once the max is reached for that table, start adding records to a BE.

    Is the Oracle table a "flat file" type structure or is it part of a normalized structure?

  7. #7
    DaveC is offline Novice
    Windows XP Access 2002
    Join Date
    Jun 2014
    Location
    Connecticut USA
    Posts
    17
    Can't export a CSV from Oracle. Only a binary output file. It's a flat data table. I can select records by date if I link it with another table that has a date field and a column that's common to the one I'm trying to split. I will go that route, thanks.

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

Similar Threads

  1. Replies: 5
    Last Post: 08-25-2014, 05:33 PM
  2. Insert a new record in a particular position in a table?
    By accessorizer in forum Programming
    Replies: 7
    Last Post: 04-07-2012, 04:21 PM
  3. Get position of record in continuous form
    By Whizbang in forum Forms
    Replies: 3
    Last Post: 11-02-2011, 01:47 PM
  4. Append Query position
    By t_dot in forum Queries
    Replies: 7
    Last Post: 08-11-2010, 11:17 AM
  5. Replies: 7
    Last Post: 04-27-2010, 10:29 AM

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