Results 1 to 3 of 3
  1. #1
    Steven19 is offline Competent Performer
    Windows 10 Access 2010 64bit
    Join Date
    Jun 2020
    Location
    London
    Posts
    110

    Programming Ideas - mass update

    I have a simple training database.


    1 table for students
    1 table for courses
    1 table to join them (many to many)

    I've just been asked to allow a tutor to create "Mandatory" training, which they would do using the courses form.

    However the mandatory corse is for All current students.

    What would be an efficient way of adding the new mandatory course to all current students?

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,825
    VBA behind a form.

    CurrentDb.Execute "INSERT INTO JoinTable(StudentID, CourseID) SELECT StudentID, " & Me.tbxCourse & " AS CourseID FROM Students"

    If you need to restrict the students, WHERE clause in the SELECT.
    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
    Steven19 is offline Competent Performer
    Windows 10 Access 2010 64bit
    Join Date
    Jun 2020
    Location
    London
    Posts
    110
    As always June7 this is awesome.

    Thank you.

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

Similar Threads

  1. Combo Box After Update Programming Question
    By Kaloyanides in forum Programming
    Replies: 2
    Last Post: 12-26-2020, 10:45 AM
  2. Programming A Loan Article Update Querry in VBA.
    By ThunderSpark in forum Programming
    Replies: 0
    Last Post: 06-25-2019, 05:13 AM
  3. Replies: 2
    Last Post: 05-23-2019, 11:09 PM
  4. Replies: 5
    Last Post: 09-12-2012, 09:53 AM
  5. programming button to update records
    By lstairs in forum Programming
    Replies: 5
    Last Post: 02-04-2010, 08:07 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