The Mad Jammer Posted August 6, 2007 Posted August 6, 2007 I want to automatically save today's date in a sparate field if my user clicks the appropriate checkbox (and reset it if the checkbox is cleared). How do I do that in an older version of FMP? Thanks Jammer
Lee Smith Posted August 6, 2007 Posted August 6, 2007 Do a search for [color:blue]+Field +Modification or [color:blue]+Audit +File and you will find several Topics about this. There is an example file the Sample File Topic, and if you go to www.databasepros.com >> Resources >> and search for Field Modification or http://www.nightwing.com.au/FileMaker/demos.html and look for Audit. Lee
LaRetta Posted August 6, 2007 Posted August 6, 2007 I'm not particularly seeing this as an audit question, but rather you want to know the date when the checkbox was selected but have the date blank when the checkbox is blanked again. You might try this: Create a calculation (result is date) with: [color:blue]Case ( not IsEmpty ( checkbox ) , Status ( CurrentDate ) , DateToText ( "" ) ) Since the calculation will be indexable (leave unchecked the Storage Option 'Do not Store calculation results'), it won't update with the current date each day. It will only change when the checkbox has been changed. It will blank the date when the checkbox is cleared but always insert the current date when the checkbox is checked. LaRetta
The Mad Jammer Posted August 21, 2007 Author Posted August 21, 2007 Lovely, Thank you for the that little snippet of code. It's been quite awhile since I've used FileMaker and I've lost some proficiency with it. Jammer
The Mad Jammer Posted August 21, 2007 Author Posted August 21, 2007 (edited) Thanks The Mad Jammer Edited August 21, 2007 by Guest
Recommended Posts
This topic is 6364 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