Results 1 to 2 of 2
  1. #1
    insane53 is offline Novice
    Windows 7 32bit Access 2003
    Join Date
    Jan 2012
    Posts
    1

    Open form with subform No Update


    Hello Good day,

    i have built a form, with a field called ID and four subforms, each on its own page, each of which display a query based on ID. As it is now, when i open the form, it runs the 4 queries with the empty field, then when i update the ID field in the main form, all 4 queries run.
    What i want is 1) to open the form with no queries running, giving chance to insert an ID in the main form
    2) for each query to run only when its page is selected.

    Thanks in advance for any help and apoligies for any forum noob mistakes.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,625
    1) You want to open form to a new record? You can either set the form DataEntry property to Yes, in which case it will always open to new record and never show existing records. Or you can control this with code. I use only VBA:
    DoCmd.OpenForm "formname", , , acFormAdd

    2) The Master/Child links of subform container controls synchronization with main form. Since subforms have a recordsource they will populate accordingly. Controlling the RecordSource or the links properties not practical. Could easily control visibility of the subform container.
    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: 1
    Last Post: 12-04-2011, 09:11 PM
  2. Replies: 5
    Last Post: 11-11-2011, 11:06 AM
  3. Open Form and filter subform
    By gg80 in forum Programming
    Replies: 3
    Last Post: 09-04-2011, 05:05 PM
  4. Replies: 1
    Last Post: 11-30-2010, 10:05 AM
  5. Open form based on Subform criteria
    By Suzan in forum Programming
    Replies: 0
    Last Post: 04-25-2006, 02:28 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