Procedure Valid If ! This.ValidateCurrentRow() Return 0 Endif Endproc Procedure BeforeRowColChange Lparameters nColIndex With This If Inlist( .RowColChange, 1, 3 ) *** If we are trying to move to a new row *** validate the current row If Not Eof( .RecordSource ) And Reccount( .RecordSource ) > Recno( .RecordSource ) *** Do not allow the move if the validation fails If .ValidateCurrentRow() *** peachy keen go ahead and move off the row Else Nodefault Endif Endif Endif Endwith Endproc *-- Called from AfterRowColChange if the row has changed to validate the prefious row and prevent changing to the new row if necessary Procedure ValidateCurrentRow Endproc