Results 1 to 2 of 2
  1. #1
    gregst is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2012
    Posts
    1

    subreport wont filter

    I have 2 tables manifest and connote. for every manifest there is 1 or more
    connotes and each connote has a manifest number



    I edit the manifest
    record and I have a button on the page which lets me print the manifest once the
    record is saved.

    The report manifest has a subreport imbedded in it but
    when the manifest prints the subreport prints all of the connotes instead of the
    connotes with the same manifest number.

    The sub report does not print the
    manifest number but I have a query set up that should only select connote
    records where there is an appropriate manifest record and as I am asking it to
    print the report only for the record I am working on in the form it should not
    print all the connote records where there is a matching manifest
    record.

    what code do I need to put where to stop this happening and
    produce a nice manifest with only its connote records printing in the
    subreport.

    Help please it is driving me bananas trying to fix it.

  2. #2
    rzw0wr is offline I will always be a newbie
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2013
    Location
    Indiana
    Posts
    479
    The print command button is likely a macro.
    Change that to a event procedure.

    Enter
    DoCmd.OpenReport "YourReportName", acViewPreview, , "manifestID =" & ManifestID, acWindowNormal

    Use this IF your Manifest ID is a number

    Edit:
    Make sure your main and sub forms are linked.

    Dale
    http://www.excelguru.ca/content.php?...-cross-posters

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

Similar Threads

  1. Replies: 1
    Last Post: 04-15-2013, 10:02 AM
  2. reports wont open
    By jamo in forum Reports
    Replies: 3
    Last Post: 10-15-2012, 05:56 AM
  3. Wont save my filter
    By mrkaye in forum Access
    Replies: 2
    Last Post: 06-13-2012, 08:30 AM
  4. Database wont open
    By sarah54 in forum Access
    Replies: 22
    Last Post: 12-08-2010, 08:38 AM
  5. Its Only A Poor Zero...Why wont it Show???
    By chompgator in forum Access
    Replies: 2
    Last Post: 03-08-2009, 01:54 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