June 8, 200619 yr 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?
June 8, 200619 yr 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.
June 8, 200619 yr Author Thanks Martha. Unfortunately this particular DB is in FP5.5. Any other suggestions (apart from migrate it to FP8!)?
June 8, 200619 yr 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
Create an account or sign in to comment