Results 1 to 5 of 5
  1. #1
    SteveSydney is offline Novice
    Windows 7 64bit Access 2016
    Join Date
    May 2017
    Posts
    5

    How do I run a report and update the reported dat to prevent it being reported again?

    I want to input a value, then use that value in an update query and a report?

    I presume that I need a global value?



    Any suggestions?

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,518
    Seems like an odd requirement. To prevent it being used again, you'd need to add the value to a table. Check that table, if it's been used stop, else add it to the table and run your report.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    SteveSydney is offline Novice
    Windows 7 64bit Access 2016
    Join Date
    May 2017
    Posts
    5
    Quote Originally Posted by pbaldy View Post
    Seems like an odd requirement. To prevent it being used again, you'd need to add the value to a table. Check that table, if it's been used stop, else add it to the table and run your report.
    Really?

    I want to change the value of a field when the report is run. Initially it is set to a default value, so the new entries can be reported, then set to another value to prevent it being reported again.

    I know I can run an update query to do this. But can I get the report to run the query? Any other ways of doing it.

  4. #4
    baderms is offline Novice
    Windows 7 64bit Access 2016
    Join Date
    Aug 2017
    Posts
    8
    You could create a print flag and update the flag when the record is run on the report.

  5. #5
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,518
    You can run the query from the same button that opens the report, or from the load event of the report. Both can use a textbox on the form for the criteria.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

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