Results 1 to 6 of 6
  1. #1
    BRZ-Ryan is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2013
    Posts
    187

    Setting a table value when item included in a report

    I created a report where it lists a set of items from a particular time range. When these items are included in a report, I would like to set a value in my table to true\1, indicating that they've been addressed. How would I go about doing this?

  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,530
    One way would be to run an update query using the same time range as a criteria.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    BRZ-Ryan is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2013
    Posts
    187
    Ok, so I created the update query which is working. Is there any way to automatically run this when the report is ran? I am using a navigation form to view the report (if that helps\matters)

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,530
    If there's code or a macro running to open the report, the query could be run immediately after. You could also use the open event of the report to run it.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    BRZ-Ryan is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2013
    Posts
    187
    Thanks for the help baldy, it's working as I want it to now.

  6. #6
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,530
    Happy to help.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Some records not included in table
    By KeesW in forum Database Design
    Replies: 13
    Last Post: 10-16-2013, 07:04 AM
  2. Item Master List | Products Table
    By namu23 in forum Access
    Replies: 4
    Last Post: 10-02-2013, 10:33 PM
  3. Multiple item form from query to table
    By Jkwb in forum Access
    Replies: 13
    Last Post: 01-15-2013, 10:35 AM
  4. Parent Item / Child Item Not Saving Correctly Together
    By Evilferret in forum Programming
    Replies: 6
    Last Post: 08-24-2012, 02:30 PM
  5. Totals for records not included in report
    By hilian in forum Reports
    Replies: 16
    Last Post: 06-18-2012, 07:47 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