Not quite sure when you are setting this value, but would suspect it would be on New Records.
But your programming will never work, because you @Modified will never be true it @IsNew is True, so that programming will never be executed. I think you may want to remove the IF @Modified section, or change the conditions.
==============
Edited....My above statement is incorrect.

I am probably suffering from my Q&A history.
I understood that this was a Q&A carryover, which could only occur once a record was already saved.
According to Mark, Sesame is a little different.
He is correct.

In Sesame the comparison is made against the form content when is it first shown, vs. comparing against a record content.
From the Sesame Programming Guide, page 189:
Quote:@Modified returns TRUE if the record has been modified in any way during the current instance of having it on-screen. @Modified compares the data as it appears in the form against the data that appeared in the form when the current record was initially shown. Initial Values being set in a new record does not set @Modified. Programming may modify a record as it's displayed. This sets the modified flag to true, the same as if the user changed an element’s value from the keyboard.
So, in Sesame it is possible to have @IsNew and @Modified both True at the same time.
Sorry for any confusion. Still learning something new about Sesame every day.
Thanks to Mark for the clarification.