Results 1 to 2 of 2
  1. #1
    lostfan789 is offline Novice
    Windows XP Access 2007
    Join Date
    May 2010
    Posts
    9

    Multi Based Criteria for SubReport

    I have a report setup that prints a single record. I get to this report by having the record open through a form and a command button to print preview the report. I have various subforms (data only applying to that record) that are also outputted on the report and that's working fine.



    But now my issue is that I have subreport that has three separate criteria I need to specify. The three controls are BrandName (value), Type (text) and DropNo (value). I have a separate table called OfficeCopies. In this are various people that, depending on the brand, type and drop, are assigned various quantities of the product. I want the report to show this list of people for the particular record only. BrandName and Type are listed on the main form and DropNo is listed in a subform.

    Right now, I have a query set up to show all the fields I need, but when I add the subreport to my main report and run it, no data is showing up and I'm getting prompted to enter the three controls. Let me know your questions. Thanks.

  2. #2
    llkhoutx is offline Competent Performer
    Windows Vista Access 2007
    Join Date
    Jan 2010
    Location
    Houston, Texas USA
    Posts
    373
    Put the variables in controls on the form calling the report and populate them, then filter the subreport record source with those form control values.

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

Similar Threads

  1. Changing font color based on criteria
    By Pattie Weaver in forum Reports
    Replies: 5
    Last Post: 11-02-2010, 03:38 PM
  2. query - criteria based on another row field value
    By techexpressinc in forum Queries
    Replies: 1
    Last Post: 05-29-2009, 04:17 PM
  3. Replies: 1
    Last Post: 03-01-2009, 09:53 AM
  4. Counting records based on specified criteria
    By GrnISSO in forum Queries
    Replies: 2
    Last Post: 10-04-2007, 03:07 PM
  5. Open form based on Subform criteria
    By Suzan in forum Programming
    Replies: 0
    Last Post: 04-25-2006, 02:28 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