i like to use a form to manage clients and ex clients. With this goal i have a group control on my form with the following code:
Private Sub GrpKeuzeKlant_AfterUpdate()
If GrpKeuzeKlant = 1 Then
Me.Filter = "me!chkboxExKlant = 'False'"
Else
Me.Filter = "Me!chkboxExKlant = ' True'"
End If
If Not Me.FilterOn Then
Me.FilterOn = True
End If
End Sub
The chkboxExKlant is a checkbox on the form that is bound to the field exklant in my tblClients.
Each time i make a choice in the group control , i get the message
Give parameter chkboxExKlant.
What am idoing wrong?
Private Sub GrpKeuzeKlant_AfterUpdate()
If GrpKeuzeKlant = 1 Then
Me.Filter = "me!chkboxExKlant = 'False'"
Else
Me.Filter = "Me!chkboxExKlant = ' True'"
End If
If Not Me.FilterOn Then
Me.FilterOn = True
End If
End Sub
The chkboxExKlant is a checkbox on the form that is bound to the field exklant in my tblClients.
Each time i make a choice in the group control , i get the message
Give parameter chkboxExKlant.
What am idoing wrong?