Carl Smith Posted June 8, 2006 Posted June 8, 2006 I can't think of the answer at the moment. If I create a simple Yes/No field, how can I set and store the actual date when the field was set to "Yes" and maintain the stored date?
mz123 Posted June 8, 2006 Posted June 8, 2006 You can create a second field that is an auto-calculation (Set it as a Date field and then click on "Options" and calculated values" Set the calculated value to: If( field = "Yes"; Get(CurrentDate); "") Make sure that the auto-calculation is checked to NOT replace. That way once the field is marked as Yes, the calculated field will enter a date and it won't change from there. Now if you want it to change if someone clicks Yes, then No, and clicks Yes again tomorrow and you want tomorrow's date, you do want the value to be replaced.
Carl Smith Posted June 8, 2006 Author Posted June 8, 2006 Thanks Martha. Unfortunately this particular DB is in FP5.5. Any other suggestions (apart from migrate it to FP8!)?
mz123 Posted June 8, 2006 Posted June 8, 2006 Man! what a bad habit I have of not reading what version people are on! Sorry :P
Lee Smith Posted June 8, 2006 Posted June 8, 2006 Use a Field Modification or Audit approach. There are several example files made in v5 and posted to the forum. Due a search for Audit in the Sample File Topic Area, and there is at least one by BobWeaver. Also, check this file Auto-Date-Stamping a Field Entry available at Here HTH Lee
Recommended Posts
This topic is 6805 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