>Thanks for your answer Barbara!
>
>I did the following.
>
>In the grids Error event I put
>IF nError=1884
>tablerevert(.t.,"ANSOGGRP")
>ENDIF
>
>Is this ok to do or am I missing something here??
>
>Best regards
>Per Simmersholm
Per, that will work, but all of the information the user entered along with the bad Emp.Nr. will be lost. If you check the value in the Valid event of the EmpNr textbox, then they can change the value or revert the record BEFORE they enter other data.
Barbara