Results 1 to 3 of 3
  1. #1
    jebowers is offline Novice
    Windows 7 32bit Access 2000
    Join Date
    Apr 2012
    Posts
    2

    Two ID fields with cross-populating Look-Up

    So, the Person table has 2 IDs (neither is the primary key of the table, like SSN and HRID). What the customer wants is to show both IDs in the Orders table.

    I'm having trouble getting the table to populate the second ID field based on what is selected from the drop-down in the first ID field.

    Person table (ID, FirstName, LastName, SSN, HRID)

    Orders table (ID, PersonSSN, PersonHRID, etc.)

    If I populate the Look-up field of PersonSSN as 'Select SSN, HRID from Person' (use column 1 as value),
    how do I get the HRID field to populate when someone selects a SSN value from the Person drop-down?

    And the follow-up, can I get the same thing to happen in reverse (i.e. populating the PersonSSN value when the customer selects an HRID from the PersonHRID drop-down)?

    I'm hoping someone understands what I just wrote, even if you can't help me.

    Thanks

  2. #2
    ssanfu is offline Master of Nothing
    Windows 2K Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    - Are you using lookup fields in your tables?

    - Why are you storing the SSn & HRID twice?

    - What does the SSN & HRID have to do with orders?

    - Are you using forms to enter data or entering data directly into the table?

  3. #3
    jebowers is offline Novice
    Windows 7 32bit Access 2000
    Join Date
    Apr 2012
    Posts
    2
    Are you using lookup fields in your tables? Yes

    - Why are you storing the SSn & HRID twice? I'm not, the Person table is the authority for the SSN and HRID. The Orders table has a reference (foreign key, so to speak) to the matching ID field from the look-up query in the Orders table designer.

    - What does the SSN & HRID have to do with orders? An order is issused by a Person, and the client wants to see both IDs in the table (view is not sufficient).

    - Are you using forms to enter data or entering data directly into the table? The users are accessing the table directly and using the down-down to choose a person's ID.

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

Similar Threads

  1. Populating fields
    By bjr001 in forum Forms
    Replies: 4
    Last Post: 10-11-2010, 10:19 AM
  2. Populating Fields
    By deiniolj in forum Forms
    Replies: 21
    Last Post: 12-08-2009, 10:51 AM
  3. Self Populating Fields
    By kellyd in forum Access
    Replies: 0
    Last Post: 09-17-2009, 10:20 AM
  4. Populating multiple fields
    By jjcaprio in forum Programming
    Replies: 11
    Last Post: 08-16-2009, 01:51 PM
  5. Populating other fields from combo box.
    By nkenney in forum Forms
    Replies: 1
    Last Post: 05-14-2009, 10:39 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