Basic code seems to be having problems since upgrade to 6.51

Hello,

We upgraged our server from 5 to 6.51 last weekend and it all seemed fine. However we have a strange problem occuring in 1 db in when using a couple of buttons. They have very basic code:

@Command([EditDocument];“1”);

FIELD POSTExp := “y”;

event1 := event1;

event2 := event2;

event3 := event3;

FIELD AuditAction := AuditAction;

FIELD AuditDate := AuditDate;

FIELD AuditBy := AuditBy;

FIELD SaveOptions := SaveOptions;

          @Set("event1"; "2nd POST Check confirmed - No Positioning");

          @Set("event2" ; @Text(@Date(@Now)) + " at " + @Text(@Time(@Now)) );

          @Set("event3" ; @Name([CN];@UserName) );

          @SetField("AuditAction";AuditAction:event1);

          @SetField("AuditDate";AuditDate:event2);

          @SetField("AuditBy";AuditBy:event3);

@Command([FileSave]);

@SetField(“SaveOptions”;“0”);

@Command([EditDocument];“0”);

@Prompt([OK];“Approved”;“This Remittance has now been Confirmed as No Positioning”)

When users press this button they always see the dialog box (last line) but sometime it does not run the other code? But then the next time you press it it might work?? Its not consistent and wondered if it could be because of the upgrade.

Its bee running without problems for 3 years before this!!

Pease help.

Thanks

Mark