Results 1 to 4 of 4
  1. #1
    kelkan is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Dec 2012
    Posts
    26

    select record on multi item form and add that data as a new record in another table


    I have multiple tables in my database. I have tblEmployees with employee data. tblCourses lists course information. tblDates lists all the available dates for each course listed in tblCourses. Finally, I have tblTraining that combines those tables and lists what training is scheduled/completed by each employee. I am trying to create a multi-item form based on the tblDates information. I want to be able to select a specific course (combobox?) and have the form filtered to list only that course. Then, I want to be able to click on a specific class/date/time and add that record to an employee in tblTraining. Suggestions on how to do that?

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Use form/subform arrangement.

    What is tblDates for?

    Build a filter into the main form (bound to tblDates or tblCourses?). Review http://datapigtechnologies.com/flash...tomfilter.html

    Bind subform to tblTraning with Master/Child links synchronizing records to main form. Have a combobox to select the employee.
    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.

  3. #3
    kelkan is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Dec 2012
    Posts
    26
    I tried to put the class dates in the tblTraining but there are many class dates for each class....it seemed easiest to create a separate table and have a relationship between the two.

    So, how do I get the record I select to add a new record to tblTraining?

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Bind the subform to tblTraining. Select employee from combobox. The PK from main form will automatically save as FK to the record in the linked subform.
    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. Replies: 3
    Last Post: 08-26-2012, 10:04 PM
  2. Replies: 3
    Last Post: 08-19-2012, 12:12 PM
  3. Replies: 3
    Last Post: 08-09-2012, 01:49 PM
  4. select Subform record and go to record on form
    By pcool in forum Programming
    Replies: 6
    Last Post: 04-16-2012, 05:50 PM
  5. Replies: 3
    Last Post: 03-22-2010, 04:30 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