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

    Append Query to add table data and create new at the same time

    I am trying to develop a database for employee training and my Access skills are a bit rusty.



    What I want to do is to have two tables connected.
    1)An Employee table to house general data (single records), Employee name, Completed course dates.
    2)A Training Notes table to house training notes (multiple records) on each employee.

    What I think I need is an append query that pulls up the employees' names from the Employee table and then allows users to fill in the data for the training notes table to add a new record in the Training Notes table.

    I have the two table and a relationship between the Employee Table primary key (ID) to a Training Notes foreign key (Employee ID).

    I need users to be able to pull up employees by name and add to the Training Notes table. I've tried to create an append query that does this, but I can't pull up the employee records.

    Currently, I can't seem to get the Relationship to work properly.

    Can someone tell me the best way to go about this?

  2. #2
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,566
    Hi

    You need a Main form based on Employees
    With a Subform based on EmployeeTrainingNotes
    You can PM me if you need further help.
    Good Reading https://docs.microsoft.com/en-gb/off...on-description

  3. #3
    Danelloc is offline Novice
    Windows 10 Office 365
    Join Date
    Apr 2023
    Posts
    16
    Thank you. I have seen info on sub forms and plan to look into that as well.

    However, I'm not sure I have these tables properly connected.

    It I have a main form for Employees and a subform for Training Notes, ultimately, where is the information being stored? Do I need a table capturing data from both the main and subform?

  4. #4
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,566
    Hi

    You have a tblEmployees and a tblEmployeeTrainingNotes

    tblEmployees
    -EmployeeID - PK - Autonumber
    -EmpFirstname
    -EmpLastname
    -(Other fields describing the Employee)

    tblEmployeeTrainingNotes
    -EmpTrainingNoteID - PK - Autonumber
    -EmployeeID - FK - LongInteger - Number (Linked to PK from tblEmployees)
    -TrainingNoteDate - DateTime
    -TrainingNote
    You can PM me if you need further help.
    Good Reading https://docs.microsoft.com/en-gb/off...on-description

  5. #5
    orange's Avatar
    orange is offline Moderator
    Windows 10 Office 365
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    Often Employee training is related to the position or role they play in the organization or project.
    Are you sure you have your requirements/scope properly defined?
    Suggest you do a mock up (pencil and paper, other) and get some ideas of the things involved and how they relate to one another.

    Consider--who needs what training; when is it required; how will the training be accomplished.....

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

Similar Threads

  1. Replies: 13
    Last Post: 02-11-2019, 08:54 AM
  2. Append Query to create combined data
    By 2Zons in forum Queries
    Replies: 2
    Last Post: 12-10-2018, 02:29 AM
  3. Replies: 11
    Last Post: 10-12-2017, 07:14 AM
  4. Replies: 3
    Last Post: 09-14-2017, 11:42 AM
  5. Replies: 2
    Last Post: 02-23-2016, 04:36 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