Results 1 to 8 of 8
  1. #1
    newtoAccess is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Nov 2009
    Posts
    226

    Linking tables

    I have two tables.



    I have a separate data entry form for both of the tables.

    How do I get some information to be automatically displayed on the form when the user is inputting data?

    Example: If the user enters a name of a team, the league and group should be automatically displayed in the next fields. The data would be coming from the other table?
    So how do I link tables together?

  2. #2
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    Quote Originally Posted by newtoAccess View Post
    I have two tables.

    I have a separate data entry form for both of the tables.

    How do I get some information to be automatically displayed on the form when the user is inputting data?

    Example: If the user enters a name of a team, the league and group should be automatically displayed in the next fields. The data would be coming from the other table?
    So how do I link tables together?
    This question pops up after days and days of posting 10 posts a day?

    Quote Originally Posted by newtoAccess View Post
    Example: If the user enters a name of a team, the league and group should be automatically displayed in the next fields. The data would be coming from the other table?
    So how do I link tables together?
    Ideally, the source of your form should be the query that inner joins all fields from the two related tables. If you join your fields at the data level like that, no code on the form is required really.

  3. #3
    newtoAccess is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Nov 2009
    Posts
    226
    OK will give it a try.
    How does the query fill the tables?

  4. #4
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    Quote Originally Posted by newtoAccess View Post
    OK will give it a try.
    How does the query fill the tables?
    it doesn't fill the tables. it queries FROM the tables. make sense? each table has fields, one field is the link, the query's result is every field from every table.

    attached is an example of how to do something like this...

  5. #5
    newtoAccess is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Nov 2009
    Posts
    226
    So do I create a From that shows the fields in all linked tables?

  6. #6
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    create an autoform from the query. its that simple.

  7. #7
    newtoAccess is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Nov 2009
    Posts
    226
    Thanks again

  8. #8
    l3111 is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Mar 2011
    Location
    Manchester, UK
    Posts
    38
    Hi

    I have two forms - a referrals form and an other services form. Once a referral has been entered, an referral reference is assigned to it by means of an autonumber. this is the primary key of this referrals table. I have created a relationship between this field and one with the same name in the other services table. my aim is that when a referral is complete and a user uses the command button that opens the other service form, it automatically populates the referral reference field with the SAME reference number from the referral.
    i have trying to complete this for weeks and would really appreciate some help. from what i have found a query seems to the best bet but i have NO IDEA how to design one to do this?

    Damsel in Distress!!

    l3111, Manchester, UK

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

Similar Threads

  1. Linking tables
    By jlmnjem in forum Database Design
    Replies: 1
    Last Post: 09-17-2010, 01:36 PM
  2. Linking tables / Queries
    By mulefeathers in forum Queries
    Replies: 7
    Last Post: 04-21-2010, 02:10 PM
  3. Linking Tables
    By Richard Hale in forum Access
    Replies: 0
    Last Post: 01-25-2010, 02:09 PM
  4. Linking two tables
    By nitsua0491 in forum Forms
    Replies: 2
    Last Post: 10-02-2009, 07:48 AM
  5. Linking Tables?
    By briancb2004 in forum Access
    Replies: 0
    Last Post: 09-29-2008, 01:14 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