I assume that the check box is bound to a field in the subform's recordset.
If so, run an update query on the recordset.
Example:
strSQL = "UPDATE TableName SET TableName.FieldName = False WHERE (apply the
restrictions to limit the records to the ones in the subform here);"
CurrentDb.Execute strSQL, dbFailOnError
Hi there,
Below is an example of what the 'on click' event code might look like for
the command button (called cmdNone). For the purposes of this exercise I've
assumed there's a table called tblRecords and a Yes/No type of field called
Flag.
Private Sub cmdNone_Click()
Dim stSQL As String
stSQL = "UPDATE tblRecords SET tblRecords.Flag = 0;"
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.