I have a form (frm1DocumentRecord) that has on it a button to open a second form (frm2SharePointComment). The first and second forms are linked using the record ID from frm1. frm2 has Save, Delete, and Close buttons. frm1 has a yes/no field on to indicate that a record exists frm2. Likewise, if the user deletes the record in frm2, I would like the check mark to disappear.
I'm challenged by how to write code to do this. I'm thinking it would be based on a either a new record in frm2 or the presence of a record, maybe triggered by a click on Save (AfterUpdate) or Delete when a record is deleted. When the form is first opened, it has a blank record, so I don't want that to create the check mark.
Is somthing like this the approach to take? If so, I have no idea of what to put in <Something> below.
If Me![<Something>], Forms![frm1].[ckCheckmark] = -1
Else Forms![frm1].[ckCheckmark] = 0