Results 1 to 3 of 3
  1. #1
    Palladian1881 is offline Novice
    Windows XP Access 2007
    Join Date
    Aug 2011
    Posts
    3

    Auto-populate from another table

    Okay--I have a table of scholarships, and each one has fields for primary contact, secondary contact, tertiary contact, etc., in which the names of the contacts associated with each scholarship are stored. What I need to do is to have every name pulled from this table and listed--each as its own row--in another table. I'd like it to do this automatically so that if a new name is added to the scholarship table, it will create a new row in the other table. Is this possible???
    Thanks in advance.

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    It sounds like you are using a non-normalized table. Where your contacts are stored horizontally

    i.e.
    Code:
    tblScolarships
    ScolID  ScolName  Contact1 Contact2 Contact3 ----> more contacts
    instead of
    Code:
    tblScholarships
    ScholID ScholName
    
    tblContacts
    ScholID ContID ContName
    You can see in the second example you can carry any number of contacts for a specific scholarship and not be bound by a predetermined number of contacts. In the first you have to allow for the maximum possible number of contacts, which, in all likelyhood, will leave you with a bunch of empty spaces.

    If I'm correct you need a union query to 'normalize' this data set

    So in your case it would be something like

    Code:
    SELECT ScholName, Contact1 as Contact FROM tblScholarships
    UNION 
    SELECT ScholName, Contact2 as Contact FROM tblScholarships
    UNION 
    SELECT ScholName, Contact3 as Contact FROM tblScolarships
    ...
    and so on for all of your possible contact fields.

  3. #3
    Palladian1881 is offline Novice
    Windows XP Access 2007
    Join Date
    Aug 2011
    Posts
    3
    Genius. Thank you so much.

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

Similar Threads

  1. Complicated auto populate
    By duncthepunk in forum Forms
    Replies: 7
    Last Post: 03-17-2011, 10:37 PM
  2. Replies: 16
    Last Post: 11-18-2010, 11:08 AM
  3. Auto Populate
    By co_sportsguy in forum Access
    Replies: 3
    Last Post: 09-01-2010, 01:22 PM
  4. Auto-Populate Combo box
    By vincenoir in forum Forms
    Replies: 3
    Last Post: 10-14-2009, 07:06 AM
  5. auto populate and table relationships
    By jmarti57 in forum Access
    Replies: 0
    Last Post: 11-09-2008, 09:50 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