Define all sets in either form's Load or if you use DE of the form in DE.BeforeOpenTables() method.
>I wasted some time on this one.
>
>my view didn't behave like it should. Deleted records appeared on the screen but I was sure that deleted was on.
>
>Soooo I began my investigation. It turns out that the cause of my problems is where the SETs come from.
>
>I used to have a prg that I called in my forms. In that prg I had a bunch of sets.
>
>I changed that to put those definitions in a class. WRONG WRONG WRONG.
>
>So if definitions are made from a function in a class "set deleted" appears to become off randomly.
>
>If defined from a prg everything is ok.
>
>Why?
If it's not broken, fix it until it is.
My Blog