Results 1 to 2 of 2
  1. #1
    dmcb is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Feb 2013
    Posts
    1

    Set the id of sub-forms in a report

    I have 1 report that contains 2 sub-forms. The Report is unbound and each sub-form has its own control source. Sub-form's 1 control source is Table 1 and Sub-form's 2 control source is Table 2.
    Is it possible to open the report and set the ID (record ID) of both sub-forms. So for example could i use a button to open the report and set the ID of the sub-forms to 3 ?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    You want to filter each subform recordset to the same ID?

    One way would be to have the subforms use parameterized query as RecordSource. The parameter would be a reference to control on a form that displays the desired ID value.

    Review
    http://datapigtechnologies.com/flash...mtoreport.html
    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. Runtime forms and report only
    By joenineo in forum Access
    Replies: 3
    Last Post: 09-17-2012, 11:30 AM
  2. Using external forms as report background
    By mperron in forum Reports
    Replies: 4
    Last Post: 01-05-2012, 03:32 PM
  3. 1 Report using several forms
    By Lbs in forum Reports
    Replies: 1
    Last Post: 12-26-2011, 01:07 AM
  4. Printing a single Report from two forms
    By cvolkers in forum Programming
    Replies: 4
    Last Post: 03-06-2011, 11:27 PM
  5. using forms control as report variable
    By Seven in forum Reports
    Replies: 3
    Last Post: 12-19-2009, 04:04 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