IIF statement and data tracking

Tcurtis

Board Regular
Joined
Aug 15, 2009
Messages
149
I have a database where the status of a part can change from being in, out, lost, etc. I would like to track when the part goes Lost. I created another field to do this with but when the status changes, the field I create changes. I would like for it to remain as it is no matter what the status is as long as it went to Lost one time.
IIF([Status]="5", "Found", "OK") is the If statement I am using currently. How do I make the number in my field stay 5 after the Status field is updated to another status?

Thanks
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Then you're going to need another field to *hold* the 5. You can then put and If() statement on that other field once it's 5, it's 5 forever.
 
Upvote 0
I put he IIF statement in the other field to hold the 5 but when the other field changes, the 5 is removed.
 
Upvote 0
Okay, I was thinking if you created a separate that you dropped the 5 into, one time, and it was never connected to the original field. So, something like...

Code:
If MyNewField = "" Then
   MyNewField = DropInMyData
End If
 
Upvote 0
I know what I am doing wrong, I am putting the IIF statement in the table which changes. I should be the IF statement in the form for after update and drop the 5 in one time.
 
Upvote 0

Forum statistics

Threads
1,215,826
Messages
6,127,117
Members
449,359
Latest member
michael2

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