I would like to add this in a form but i noticed when I exit out and go back in it, it does not save the highlights. How do I get it to save the highlights?
That would be the correct behaviour. The 'update' flag is only set during a single viewing of a record, once the form has been closed, or a different record has been displayed, the flags are reset.
If you would like to continually 'track' which fields have been updated you will need to do several things:
- Add an 'updated' date/time field for each field that you wish to change the formating.
- Add a control field (possibly two, or even more), with date/time information on which to base your comparisons.
You could then compare each field against the control field(s) and set the formatting to something different for those that have been updated since the control field was last changed. This is why you might want two or more control fields. One to record the initial date the record was created and one to record the last date any changes were made. You could then indicate using conditional formatting which field(s) had been updated after the creation of the record. Of course, if you have multiple fields updated on different dates then you are likely to end up with most, if not all, of the fields eventually showing (formatted) as having be changed at some point, is this really what you want?
You could also, although this might lead to a cluttered form, actually display the date/time that that field was specifically updated.
If you are intending to go as far as keeping track of changes perhaps it would be better to just create a new record, along with the date, each time some of the information was changed. You could then, somehow, compare the current record to the previous one and highlight changed fields that way. In this manner you would have a changes history since the record was first created.
HTH
Tim