dcecil Posted September 8, 2005 Posted September 8, 2005 I have a field named "Checked out?" I would like this field to have a value of "Yes" if 2 other fields meet certain criteria. The criteria is, field "Checked out by" filled in and field "Returned Date" NOT filled in. This is what I see as a way to see if an item has been checked out or not. If anyone has a better way to do this, please let me know. Thanks, dcecil
LaRetta Posted September 8, 2005 Posted September 8, 2005 Hi dcecil, Set an Auto-Enter (Replace) value on your Checked Out field with this calculation: If(not IsEmpty(CheckedOutBy) and not ReturnedDate ; "Yes" ) If your ReturnDate is NOT a date field, change it to: If(not IsEmpty(CheckedOutBy) and not IsEmpty(ReturnedDate) ; "Yes" ) Auto-Enter (Replace) means from Options, the Auto-Enter tab and checkbox 'by Calculation'. Then unchecking right below that the 'Do not Replace Existing Value if any.' It can also just be a calculation. LaRetta :wink2:
LaRetta Posted September 9, 2005 Posted September 9, 2005 Ooops. Apologies for the error in my second calculaton. Of course it should have been: If(not IsEmpty(CheckedOutBy) and IsEmpty(ReturnedDate) ; "Yes" ) This is ONLY if ReturnedDate is type text. ReturnedDate SHOULD be date anway but I didn't want to leave garbage in any post. I was in too much of a hurry this morning ...
dcecil Posted September 9, 2005 Author Posted September 9, 2005 Thanks! That works great. This forum is fantastic! dcecil
Recommended Posts
This topic is 7083 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now