I have a form called Frm: Mtg Attendance Data Entry that appends to AttendanceAppendTable. On my form I have three Yes/No Check Box options of "Attended Meeting", "Guest", and "Presenter". The Control Names are "TempAttendance", "Guest", and "Presenter" respectively. The append works just fine, however, when I return to Frm: Mtg Attendance Data Entry form the Check Boxes are still selected and I need them to be blank so that I can start over for my next append. I have tried several different variations of codes I have found online but haven't gotten anything to work. Below are a couple codes I tried modifying, but they don't work...obviously. Can someone please help with my code? I just want to be able to click on the command button and make all the text boxes Null. Thanks.
Private Sub ClearFormText(frm As Form)Dim ctl As Control
Dim CheckBox As CheckBox
For Each ctl In frm.Controls
If ctl.ControlType = CheckBox Then
Set CheckBox = ctl
If CheckBox.Tag = "True" Then
CheckBox.Value = "False"
End If
End If
Next ctl
End Sub
--------
Private Sub ClearBoxes(frm As Form)Dim ctlVar As Control
For Each ctlVar In Me.Controls
If ctlVar.ControlType = CheckBox Then
If CheckBox.Value = Is Not Null Then
CheckBox.Value = Null
End If
End If
End Sub