Results 1 to 3 of 3
  1. #1
    faythe1215 is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Jul 2014
    Posts
    52

    Button on form to display report only works for one record.

    I have a "print" button on my "frmRecipes" form. When the button is clicked, it's suppose to open "rptRecipes" filtered on the ID number.


    It only works for the first record, though. It won't work on any others.

    I have attached the database for troubleshooting.

    RecipeReport.zip

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Change the criteria to:

    "ID = " & Me.ID

    The report works for ID 1 and 9 but ID 2 does not have records in the report query. This is because the query joins tables with INNER JOINs.
    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.

  3. #3
    faythe1215 is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Jul 2014
    Posts
    52
    I have information missing and so when the fields are empty, some of the records don't show.

    That's what it is... THANKS!

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

Similar Threads

  1. Replies: 6
    Last Post: 06-25-2014, 11:58 AM
  2. Display random record with button
    By shredsec in forum Forms
    Replies: 3
    Last Post: 01-01-2013, 02:27 AM
  3. Replies: 2
    Last Post: 05-11-2012, 11:52 AM
  4. Printing report from first record works...
    By TinaCa in forum Programming
    Replies: 10
    Last Post: 01-17-2012, 10:59 AM
  5. Replies: 3
    Last Post: 01-14-2010, 08:32 AM

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