Results 1 to 2 of 2
  1. #1
    LanieB is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Nov 2011
    Posts
    54

    Question Reports and Subreport have same parameters... I only want it to ask once!

    Hello There!



    I have a report and a subreport within that report. They have the same parameter [Branch Number]. It keeps asking me for the Branch Number twice before it will display the report. What do I need to do to only have it ask me once. Thank you!

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,622
    Maybe don't put the parameter in the subreport RecordSource query. Use the subreport Master/Child links properties to synchronize the subreport to the main report.

    I never use query parameter input prompts. Options:

    1. query parameter refers to form controls for input

    2. use WHERE CONDITION of DoCmd.OpenReport (or OpenForm) to pass criteria to report or form.
    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: 2
    Last Post: 04-12-2012, 05:16 PM
  2. Hiding a subreport
    By castufari in forum Reports
    Replies: 3
    Last Post: 11-23-2011, 08:21 PM
  3. SubReport Problem
    By 97rstd in forum Reports
    Replies: 3
    Last Post: 11-18-2011, 03:31 PM
  4. Columns in a subreport
    By kcm4491 in forum Reports
    Replies: 1
    Last Post: 03-10-2011, 12:11 AM
  5. Report and Subreport
    By newbie in forum Reports
    Replies: 0
    Last Post: 02-16-2010, 12:14 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