Results 1 to 2 of 2
  1. #1
    MikeDBMan is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Feb 2011
    Location
    Stillwater, Oklahoma
    Posts
    23

    Looking Up Data


    I have 3 fields on my form: ResponsiblePerson, PhoneNbr, EmailAddress. The first one is a combo box populated from another table in the database, personnel. In the Personnel file is the person's name, the field that is also populated on my form. I wish to auto-populate those fields on this form also. I know this is not efficient as I don't really need the last 2 fields in both places but that is how I wish to do it. My question, how do I auto-populate the PhoneNbr and EmailAddress fields of the current from from the other table?

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,441
    Is responsibleperson a unique key field? a primary key is one that is never duplicated throughout your database. If this is a text field with the person's name it is probably NOT a primary key because you could have multiple John Smith people names. If it is unique key, also make it your primary key on your Personnel table. Then link the data entry table to the personnel table (going from your data entry TO your personnel table)

    If you add the fields you want from both tables then open it and put in a known personnelID (responsibleperson) it should bring up all the information associated with that person. Just beware, you will want to lock these fields down on any form, because they can be changed in this type of setup which you probably do not want.

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

Similar Threads

  1. Replies: 4
    Last Post: 01-05-2011, 07:56 AM
  2. Find data, load data, and save as a new record
    By hawzmolly in forum Access
    Replies: 0
    Last Post: 10-05-2008, 03:18 PM

Tags for this Thread

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