I have program with a structure like this.

I have workspace defined

One button called edit

One button called cancel

Code of edit-button : Workspace.BeginTrans

Code of cancel-button : WorkSpace.Rollback


However when i first press the edit-button and then the cancel-button i get a error-message that there was no begintrans.

How is this possible ?
Please help this puzzled boy.