Results 1 to 2 of 2
  1. #1
    Danelloc is offline Novice
    Windows 10 Office 365
    Join Date
    Apr 2023
    Posts
    16

    Form Adding Data to two separate tables

    I'm Trying to build a database for training employees. I have one table which houses general employee data (name, section, class dates, etc) and a separate table that houses Performance notes on each employee. This second table will have multiple entries and longer entries than the general table, so I have the two separate tables with record ID and employee names connected in relationships (not sure if I set that up correctly.



    What I want to be able to do is view an employee record with the general table, but also to be able to scroll through and add records to the performance notes table in the same form.

    Is there a clean way to do that?

  2. #2
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,566
    Yes best method is a Main Form based on tblEmployees and a Subform based on tblPerformanceNotes.

    You should have a Primary Key field EmployeeID in tblEmployees

    With a related field EmployeeID Foreign Key in tblPerformanceNotes

    You would link Primary Key to Foreign Key on the Relationships Window and Enforce Referential Integrity.
    You can PM me if you need further help.
    Good Reading https://docs.microsoft.com/en-gb/off...on-description

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

Similar Threads

  1. Adding 2 Separate Tables
    By Elsie in forum Programming
    Replies: 1
    Last Post: 01-31-2023, 08:14 PM
  2. Replies: 5
    Last Post: 03-31-2014, 02:26 PM
  3. adding record by using separate form
    By jacek.w.bak in forum Forms
    Replies: 1
    Last Post: 09-11-2011, 06:15 PM
  4. Replies: 3
    Last Post: 03-16-2011, 12:44 PM
  5. Collecting data off a form and adding to 2 tables
    By Phil Knapton in forum Access
    Replies: 1
    Last Post: 01-04-2011, 10:58 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