Flag a line item even if it changes

Tcurtis

Board Regular
Joined
Aug 15, 2009
Messages
149
Good Morning. I have a table with list of parts that were checked out. In this list there are several status changes you can make, one of them being that the item was lost. I would like to be able to have a check box or other field populate when an item is put on the lost list and have the flag remain after the item is found and updated to found. How can I keep the flag as lost if the item is updated?

Thanks
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Hi, not particularly easy *unless* you have a form-driven application and the *only* way to set a lost flag is to use the appropriate form (gui). Even then, you probably need a second field "ItemHasBeenLost" or "ItemWasLost" to go with your "Lost" field, and it should be updated to TRUE whenever the "Lost" field is updated to TRUE. In that case, you can use the Form's AfterUpdateEvent to check the Lost field.

Access 2013+ supports triggers but I do not have experience with that method. It may be another alternative.

A third alternative would be to use a nightly batch process to search for Lost items (which would be a satisfactory middle ground which would only fail for items that are lost, then found, in the same day).
 
Upvote 0
Thanks for the help. I reread my request and found that I was not very clear, which usually happens with me. We have a clerk that is in charge of changing the status of a part according to what they find. They have a drop down box that they use to change the status. Once the part is found, the status will change to a different status. Can I make the "Itemhasbeenlost" field stay that way after the part was found? I want to track all items that were lost and then found. The permanently lost items stay in this category so they are easy to track. Thanks
 
Upvote 0
You would need another field to track that with. Or dates to track changes in status, which would add complexity.
 
Upvote 0

Forum statistics

Threads
1,214,833
Messages
6,121,857
Members
449,051
Latest member
excelquestion515

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top