I have a form that among other things, requires users to deselect a checkbox if an item is no longer present at a particular location. Fields in the form are auto populated with the most recent data based on a combination of the item and location Once an item at a particular location is no longer present, I would like previous records that had that item at that location to be changed from present to not present (i.e., the checkbox to be deselected in previous records since the item is no longer present). Ideally this would occur on click of the check box within the form.
Below is an example of what the data table currently looks like after deselecting the checkbox(present y/n) for a record on 1/7/16.
date Item present location 1/1/2016 a yes 1 1/2/2016 a yes 1 1/3/2016 a yes 1 1/4/2016 a yes 1 1/5/2016 a yes 1 1/6/2016 a yes 1 1/7/2016 a no 1
Below is what I want the data table to look like when I deselect the checkbox for a record on 1/7/16.
date Item present location 1/1/2016 a no 1 1/2/2016 a no 1 1/3/2016 a no 1 1/4/2016 a no 1 1/5/2016 a no 1 1/6/2016 a no 1 1/7/2016 a no 1