Results 1 to 2 of 2
  1. #1
    brandonze is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Mar 2011
    Posts
    49

    Trying to Link tables

    Hello all,

    I am still new to access and need a little help to do something that is probally really simple.

    I have a table that contains all the information that I need for my event. The data that is important for this question is the Last Name, First Name, Rank and SSN.

    What I want to do is to be able to put the SSN into an access table via a barcode reader. This is not the problem. the problem is that after I input the SSN, I would like the Last Name and First Name and Rank to populate on the table that the SSN is scaned into.

    Any help would be better than what I have know.

    Thanks
    ~Brandon

  2. #2
    pkstormy's Avatar
    pkstormy is offline Access/SQL Server Expert
    Windows XP Access 2003
    Join Date
    Mar 2010
    Location
    Madison
    Posts
    682
    You'll most likely need to design a form (and update query), where the user selects the ID (ie. autonumber field) for getting the name info.

    To do it on a form, have 2 comboboxes, one which selects the ID (from the name table) - the rowsource of this combobox will also have first name, last name, etc.. fields, and the other combobox which selects the SSN. Then design an update query against the table which has SSN, setting the criteria of SSN to =Forms!MyFormName!SSNField for the criteria row under SSN,
    In the update row, you'll have expressions such as: Forms!MyFormName!IDCombobox.column(x) where x is the appropriate column for the combobox (ie. x=1 for first name, x=2 for last name field. Then double-check to make sure these are also the correct columns for the combobox.

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

Similar Threads

  1. how to link 3 tables?
    By handsome1855 in forum Access
    Replies: 1
    Last Post: 03-10-2011, 09:25 AM
  2. One-way link between tables
    By Mikele di Sagitter in forum Database Design
    Replies: 1
    Last Post: 07-23-2010, 08:26 AM
  3. How do I link existing tables?
    By jsbdiver in forum Programming
    Replies: 0
    Last Post: 05-24-2010, 02:53 PM
  4. Join three or more tables in many to many link
    By elicoten in forum Database Design
    Replies: 3
    Last Post: 02-04-2010, 06:51 PM
  5. Best way to link tables together?
    By marleyuk in forum Access
    Replies: 1
    Last Post: 06-07-2009, 08:44 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