Results 1 to 3 of 3
  1. #1
    kassem is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2014
    Posts
    22

    When clicking on button on report, how to only carry that action on report clicked

    Hi guys,



    so i created a report called EstimatesR and on that report there is a button called sign and this basically writes the users name in a textbox located on that report called textbox12. When i open the report it shows all the reports for the records i created one under another and beside each report is the button. How can I make it so only the report the button is clicked on gets the value written not all the other reports for the other records being displayed on the page.

    Thanks.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,521
    Sounds like you want the query to have a WHERE clause that filters data based on textbox12.
    where [userName]='" & forms!frmrpts!textbox12 & "'"

  3. #3
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,822
    Reports are not intended to be interactive and buttons won't work in PrintPreview. You might be able to get a report opened in ReportView to be interactive but I have never done this. I prefer to have user input criteria on a form then open the report:

    DoCmd.OpenReport "report name", , , "UserID=" & Me.tbxUser

    Forms are intended for interactive screen display and reports for printing.
    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: 3
    Last Post: 07-11-2013, 11:52 AM
  2. Replies: 0
    Last Post: 03-23-2011, 11:29 PM
  3. Replies: 26
    Last Post: 01-09-2011, 05:30 PM
  4. Print Report by clicking record
    By jamil_kwi in forum Reports
    Replies: 1
    Last Post: 10-05-2010, 08:23 AM
  5. Replies: 1
    Last Post: 01-29-2010, 11:30 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