>Ok, thanks, that is now done.I have my own working copy. I did see code in the add btn that read:
>IF THIS.Parent.EditMode
> THIS.Parent.UpdateRows()
>ELSE
> IF !THIS.Parent.AddRec()
> RETURN
> ENDIF
>Can I ask 2 more things?
>
>-what does "THIS.Parent.UpdateRows()" do? I can't seem to find it.
>-Also, I cannot find the 'REVERT' reference that the add button turns into.
>
>Thanks again.
-This.parent refers to the container (txtbtns) itself. Updaterows() does the tableupdating part. You can find it either from PEM sheet or while a code window is open search for 'tableupdate' (all objects checked).
-Revert is in cmdEdit button click. (Setcaption has below code) :
IF THIS.EditMode
THIS.cmdAdd.Caption = SAVE_CAPTION_LOC
THIS.cmdEdit.Caption = REV_CAPTION_LOC
ELSE
THIS.cmdAdd.Caption = ADD_CAPTION_LOC
THIS.cmdEdit.Caption = EDIT_CAPTION_LOC
ENDIF
Cetin