Results 1 to 3 of 3
  1. #1
    Dasun is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jul 2011
    Posts
    10

    connecting many sub forms in one main form

    Access Expertise : Novice



    Here I have a main form and 10 sub forms(for data entry) in that. And those sub-forms are connected to 10 different tables. I tried putting a save button at the end of main form and it does not work that way.

    Is there any way I can combine all the sub-forms ( as they are connected through field " ID" ) and enter data.

    Need to include all the sub forms in one main form and put a save button and a new record button


    Heartfelt gratitude to supporters

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    Why doesn't it work that way? Save button probably not needed. Records are committed to tables when the form closes or move to another record.

    What are the relationships of these tables - one-to-one, one-to-many, many-to-many?
    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
    drexasaurus's Avatar
    drexasaurus is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2011
    Location
    Santa Ana, CA
    Posts
    60
    June7 is right if they are all bound forms. What is the situation?

    If the parent form in unbound and the subforms are bound and are not explicitly linked to each other, but they all are supposed to point to the same (I'm assuming foriegn key) ID at the same time, you might want to keep track of the ID in the parent form and on one of the update events enter this ID for them from as received from the parent form (I usually hide this subform's field from the user) so the data doesn't become orphaned or what not. I only need to do this when I have Bound subforms connected to an unbound form, however.

    It's also possible that you need to fix the links on the master and child fields if you are working on bound forms.

    If you are working with ten different unbound subforms however... that's just a lot of hard work. Could be done, however.

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

Similar Threads

  1. Connecting Project to Access
    By AeroEngineer in forum Access
    Replies: 1
    Last Post: 09-23-2010, 10:02 AM
  2. Connecting sybase thru ms-access odbc
    By murali.kothuru in forum Queries
    Replies: 2
    Last Post: 08-01-2010, 10:00 PM
  3. Replies: 3
    Last Post: 02-01-2010, 08:26 AM
  4. Database design - connecting 2 tables
    By Eisaz in forum Database Design
    Replies: 2
    Last Post: 10-16-2009, 09:19 AM
  5. Replies: 3
    Last Post: 06-02-2009, 09:51 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