Results 1 to 3 of 3
  1. #1
    bshelt is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2013
    Posts
    1

    Possible to create a relationship with thousands of records at once???

    I'm still fairly new to Access and excited about the potential, but I've had a very difficult time trying to find a solution to my current problem:



    I've been appending a very large table by importing thousands of records at a time from Excel files. This table has a field in which every record contains one of three different options (text format):

    1. ABP
    2. CHALR
    3. PSM

    I've also set up another table with ABP, CHALR, and PSM to use as a parent table, and I'd like to link it to the large table in a one-to-many format, ultimately replacing the text versions of the abovementioned options with a relationship link to the parent table. It's important because I'd like to link other tables to this parent table, as well.

    Is there anyway that I can utilize the text formatted options that are already in the large database to create some kind of look-up and link the desired relationship appropriately for tens of thousands of records at once?

    Thanks in advance for any insight provided!

    - Brandon

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    If you're saying you want to update the ABP to 1, CHALR to 2, etc, sure. You should be able to use an update query that joins the 2 tables together. You can probably update the existing text field, or a new numeric field.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    It isn't mandatory to use a number field as the PK/FK linking. Although indexing could be faster with number type, the text identifier will work.

    Do these 'other' tables already have the number FK?

    Why would these values be in 'other' tables?
    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.

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

Similar Threads

  1. Linking to thousands of external images
    By taichi56 in forum Access
    Replies: 5
    Last Post: 06-03-2013, 11:24 PM
  2. Replies: 24
    Last Post: 02-20-2013, 12:49 PM
  3. Replies: 3
    Last Post: 10-29-2012, 11:43 AM
  4. Replies: 2
    Last Post: 08-07-2012, 01:16 PM
  5. help me create relationship
    By Candy in forum Access
    Replies: 7
    Last Post: 05-29-2010, 07:43 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