Results 1 to 5 of 5
  1. #1
    Blindability is offline Novice
    Windows 7 32bit Access 2013
    Join Date
    Oct 2015
    Posts
    5

    Automatically populate information

    Hi all

    This is possibly a really easy nubie question, so I hope the answer is very simple!

    Is there a simple way of auto populating information between tables? Essentially I have a list of people who are registered on a table. I want to be able to type some information into another table, and all of the relevant details are auto populated.

    Can anybody help with a simple step by step for this, or is it complicated?

    Thanks in advance

  2. #2
    NoellaG's Avatar
    NoellaG is offline VIP
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Jun 2010
    Location
    Belgium
    Posts
    1,175
    Hi,

    it is quite simple if you have a good database design. You create a table with the main information, for example Customers (name, address, ...) and each customer has an unique number (primary key field). Than you can have a second table with, for example orders, and all you have to to is to repeat the customer number in thet table to be able to retrieve all corresponding data from the customers table. Just take some time to get familiar with relational database design.

    succes
    NG

  3. #3
    Blindability is offline Novice
    Windows 7 32bit Access 2013
    Join Date
    Oct 2015
    Posts
    5
    Quote Originally Posted by NoellaG View Post
    Hi,

    it is quite simple if you have a good database design. You create a table with the main information, for example Customers (name, address, ...) and each customer has an unique number (primary key field). Than you can have a second table with, for example orders, and all you have to to is to repeat the customer number in thet table to be able to retrieve all corresponding data from the customers table. Just take some time to get familiar with relational database design.

    succes
    NG
    Thanks, so if I were to have the table as suggested and have the URN as the primary key, create a second table where I want to populate the information. Create a relationship between the two tables and then once the URN is entered into the new table, everything else should populate. Is this correct?

  4. #4
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 7 32bit Access 2013
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,610
    Quote Originally Posted by Blindability View Post
    Thanks, so if I were to have the table as suggested and have the URN as the primary key, create a second table where I want to populate the information. Create a relationship between the two tables and then once the URN is entered into the new table, everything else should populate. Is this correct?
    I think you would benefit from reading the following link: https://www.accessforums.net/tutoria...ase-45451.html
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  5. #5
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,644
    'All of the relevant details' should NOT be populated into the second table - only the record ID should be. Duplicating data between tables violates basic relational database principle. Only save the PK/FK value so tables can be linked in queries to make related info available.

    There are techniques to display the related info on form but this is not to save the data into record.

    Should not be working directly with tables. Use forms and reports for user interface.
    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. Automatically populate expiration date
    By Tyler in forum Access
    Replies: 2
    Last Post: 01-10-2014, 10:05 AM
  2. Replies: 11
    Last Post: 02-04-2013, 05:32 PM
  3. Replies: 3
    Last Post: 03-27-2012, 10:15 AM
  4. Replies: 3
    Last Post: 10-17-2011, 10:36 PM
  5. Replies: 12
    Last Post: 04-18-2011, 08:52 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