m.DeleteCriteria=ALLTRIM(THISFORM.idcode.Value)+ALLTRIM THISFORM.idcode2.Value) IF INDEXSEEK(m.DeleteCriteria, .T., 'table1', 'myIDCodeIndex') DELETE FOR m.DeleteCriteria IN 'table1' WAIT WINDOW 'Record has been deleted.' ELSE WAIT WINDOW 'Record not found.' ENDIF>I am trying to set a form up so that the user can enter the necessary codes and then click on the delete button to delete a certain record. Needless to say, it is not working! Below is the code that I have in the click method of the delete button.