Results 1 to 2 of 2
  1. #1
    vientito is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Oct 2014
    Posts
    26

    single form for multiple subform controls


    Here's a quote from form.recordsource from MSDN:

    "Changing the record source of an open form or report causes an automatic requery of the underlying data. If a form's Recordset property is set at runtime, the form's RecordSource property is updated."

    Say, I have a main form that has two separate subform controls, each of which has sourceobject points to a single form - FrmB

    naming one subform1.form.recordsource to a SQL statement that picks out 2*n elements of a set

    and another subform2.form.recordsource to another SQL statement that picks out 2*n-1 elements of the same set

    Would the second subform2 control reset the form record data already opened in subform1 control?

    In other words, are two separate subform controls actually holding a cloned form (derivative of frmB) where opening of one does not affect the recordset of the other?

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    I believe answer is no. Both subform containers are looking at the same object. Try it. See what happens.
    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: 4
    Last Post: 06-13-2013, 01:02 PM
  2. Replies: 1
    Last Post: 04-24-2013, 12:12 PM
  3. Replies: 5
    Last Post: 11-15-2012, 03:33 PM
  4. single form multiple database
    By sms2720 in forum Programming
    Replies: 7
    Last Post: 12-14-2011, 01:26 PM
  5. Replies: 1
    Last Post: 09-28-2009, 05:21 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