A subform is continuous, and contains a delete and save button for each record. Save seems to be working and changes a checkbox in another form to "-1" for "YES". However it's the delete button having a problem. When clicked, it changes
the checkboxes to look as if every other record other than the one that was deleted except the record that truly was deleted for the particular client. Originally, I had wanted the checkbox to get the get check, and lose the check, by looking at the table
where the apt exists rather than blindly adding or removing a checkmark. Maybe I should try that method again? But I could not come up with the proper syntax, so I did the following. I need this to work, or I need help make up an IF statement to check the
table after delete or save is clicked: IF ApptIDs in Table A = table B, then checkbox=YES, else checkbox=NO. Any help out there?
Private Sub Delete_Record_Click()
DoCmd.RunCommand acCmdDeleteRecord
DoCmd.SetWarnings False
CurrentDb.Execute "UPDATE [tblAppointment] INNER JOIN tblAccount ON [tblAppointment].[ApptID] = [tblAccount].[AcctApptID] SET [Added]=0"
DoCmd.SetWarnings True
Forms![frmClient]![subAccount].Form![comAccount].Requery
End Sub