Results 1 to 3 of 3
  1. #1
    Hyoryn is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2017
    Posts
    2

    Autocreate new dataset in connected table?

    Hi,



    I have a Table with employee information (EmployeeID, name, adress, etc.) and another table for annual/monthly trainings each employee has to receive. I split these two mainly for clarity (there are over 30 trainings).

    Both tables have the employee ID as the primary key and connected 1-to-1.

    I created a form to add a new employee to the primary table and now i want this form to also create a new dataset in the trainingtable (just create a new row with the EID, since all the training dates are added later in a different form).

    Making the connection referential and using auto-update doesnt work for some reason.

    Is there a way to do what i want? I really dont want to merge these to tables into one, because it is a lot of data and would get very confusing.

    I hope you guys can help me

    Hyoryn

    P.S.: as you can probably tell english isnt my native language and i use the german version of access, so i might have gotten some of the terms wrong, sorry about that

  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    Both tables have the employee ID as the primary key and connected 1-to-1.
    from your description, it sounds like your data has a many to many is not normalised. I would expect three tables

    tblEmployees
    EmployeePK autonumber
    EmployeeName text
    ...
    ...

    tblTraining
    TrainingPK autonumber
    TrainingDesc text
    ...
    ...


    tblEmployeeTraining
    EmployeeFK long - link to tblEmployees
    TrainingFK long - link to tblTraining

  3. #3
    Hyoryn is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2017
    Posts
    2
    Thanks for the reply.

    I'll try it once i get home. I'm rather new to access and theres still a lot to learn

    Thanks again

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

Similar Threads

  1. Replies: 1
    Last Post: 07-30-2015, 05:03 AM
  2. Replies: 3
    Last Post: 10-28-2014, 12:23 AM
  3. Replies: 0
    Last Post: 06-19-2012, 05:20 AM
  4. Connected Listboxes
    By brc in forum Queries
    Replies: 2
    Last Post: 07-08-2011, 09:22 AM
  5. Two textboxes connected to the same table
    By ma09fraga in forum Forms
    Replies: 6
    Last Post: 06-11-2009, 12:42 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