*** is this in the valid ? >WITH ThisForm > .txtEnterTotal.VALUE=iif(_Tally=0,0,arrCompute) > .txtTotRecCnt.VALUE=_Tally >ENDWITH > *** since there are no ADD/EDIT buttons *** how do you know when a record has been added or deleted *** maybe create a method for the init call and use it in *** the valid also? >*Any code adding to table also calls >WITH ThisForm.txtTotRecCnt > .VALUE=.Value+1 >ENDWITH > >*Any code deleting from table also calls >WITH ThisForm.txtTotRecCnt > .VALUE=.Value-1 >ENDWITH>
please explain why i would use this.tag? >*TxtAmt.GotFocus >this.Tag = trans(this.Value) > >*TxtAmt.LostFocus >WITH ThisForm.txtEnterTotal > .VALUE = .Value + (this.Value - val(this.Tag)) >ENDWITH >if !mdown() and inlist(lastkey(),13) > keyboard '{DNARROW}' >endif *** I had this set to true >*Grid.AllowAddNew= .t. would handle adding the new record if at bottom >Cetin