my code:
rs!empnamee = Trim(Text1.Text )
On Error Resume Next
con.Execute "delete from paymentemployac c where empnamee='" & Trim(Text1.Text ) & "'"
MsgBox "Employ deleted"
Call sClear(Me)
it deletes the records mentioned in text1
but, it allways messages employ deleted but there is no such records
so, please help me with good working code
1>which should give message when record not found
2>which should give message when record is deleted
3>which should delete the records written in textbox including duplicate names
rs!empnamee = Trim(Text1.Text )
On Error Resume Next
con.Execute "delete from paymentemployac c where empnamee='" & Trim(Text1.Text ) & "'"
MsgBox "Employ deleted"
Call sClear(Me)
it deletes the records mentioned in text1
but, it allways messages employ deleted but there is no such records
so, please help me with good working code
1>which should give message when record not found
2>which should give message when record is deleted
3>which should delete the records written in textbox including duplicate names
Comment