G
Guest
CODING used
-------------------
Response = msgbox("You are about to delete this Contact's details. Is this
Correct?", vbYesNo + vbDefaultButton2, "WARNING")
If Response = vbNo Then Exit Sub
DoCmd.SetWarnings False
DoCmd.RunSQL "delete * from tablecontact where contactno = " & Me.ContactNo
& ";"
DoCmd.RunSQL "delete * from tablecontactextramember where Memconno = " &
Me.ContactNo & ";"
DoCmd.SetWarnings True
Response = msgbox("Contact Record Deleted", vbOKOnly, "Information")
DoCmd.Close acForm, "formcontactmemberedit", acSaveNo
-------------------
Response = msgbox("You are about to delete this Contact's details. Is this
Correct?", vbYesNo + vbDefaultButton2, "WARNING")
If Response = vbNo Then Exit Sub
DoCmd.SetWarnings False
DoCmd.RunSQL "delete * from tablecontact where contactno = " & Me.ContactNo
& ";"
DoCmd.RunSQL "delete * from tablecontactextramember where Memconno = " &
Me.ContactNo & ";"
DoCmd.SetWarnings True
Response = msgbox("Contact Record Deleted", vbOKOnly, "Information")
DoCmd.Close acForm, "formcontactmemberedit", acSaveNo