I have a reservation form and I want to tick a checkbox that will filter the form based on what is in the "Reservation Status" combo box.
When the checkbox is ticked, the code would remove all records that have "Complete" as a status in the "Reservation Status" combo box. The non-working code that I currently have is:
Thanks for the help
When the checkbox is ticked, the code would remove all records that have "Complete" as a status in the "Reservation Status" combo box. The non-working code that I currently have is:
Code:
Private Sub chkHideComplete_AfterUpdate()
On Error Resume Next
If Me.chkHideComplete = True Then
Me.filter = "[ReservationStatus] = 1"
Me.FilterOn = True
Else
Me.filter = "[ReservationStatus] = 1"
Me.FilterOn = False
End If
DoCmd.GoToRecord , "", acLast
Me.cboContactID.Requery
End Sub
Thanks for the help