Results 1 to 2 of 2
  1. #1
    mrl is offline Novice
    Windows XP Access 2007
    Join Date
    Nov 2011
    Posts
    5

    Post Please Help - problem with adding new records to Subform

    I have a db with a main form containing a subform that is linked using the master/child fields control.
    The main form recordsource is a Department table.


    The Department record is selected using a combo box.
    The related fields are the ID in the Depts table and the Dept ID in the course table.
    The subform is based on a query that displays the related records for the selected Dept
    (ie one Dept runs many courses).
    The records in the subform can be edited/added, however when I add a new
    course record in the sub form I have to manually select the Dept ID.
    Is it possible to have the Dept ID for the new record to automatically link/lookup
    the selected/related Department from the Parent form (ie; if the Legal Dept has been
    selected in the main form then the new course record should be automatically be for the Legal dept).

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870

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

Similar Threads

  1. Adding/Editing Records through a subform
    By Antinomy in forum Forms
    Replies: 17
    Last Post: 06-30-2012, 07:29 PM
  2. Replies: 4
    Last Post: 06-18-2012, 07:01 AM
  3. Adding new partial records to a subform
    By DarkWolff in forum Forms
    Replies: 7
    Last Post: 03-06-2012, 04:05 PM
  4. Adding Records in a Subform
    By chris.williams in forum Forms
    Replies: 3
    Last Post: 10-14-2011, 01:21 PM
  5. Adding multiple records in subform
    By randolphoralph in forum Programming
    Replies: 1
    Last Post: 05-12-2010, 09:42 PM

Tags for this Thread

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