Hey....
I wrote:
Private Sub Form_Load()
Me.FilterOn = True
If ALleofNu = "N" Then
Me.Filter = "Patienten.[kineitem] = false"
Me.filteron = True
endif
End Sub
with perfect result...
But when I canhed it all into:
Private Sub Form_Load()
Me.FilterOn = True
If ALleofNu = "N" Then
Me.Filter = "Patienten.[kineitem] = false"
Else
Me.Filter = "Patienten.[kineitem] = false AND Patienten.[Nu nog
leerling] = 'J' "
End If
End Sub
I get an errormessage 2001 (no help available) saying (and now I have to
translet so the syntax may be different)
"You dismissed previous action"
What do I do wrong this time?
Also I doubt if the syntax
"Patienten.[kineitem] = false AND Patienten.[Nu nog leerling] = 'J' "
will work because of the quotes ('J' ")
Thanks fo your kind help and best wishes for 2007
JP Belgium
strive4peace schreef:
Hi Jean-Paul,
if you are filling the property in directly for Filter, do not use quotes
Also, there is no FilterOn property in the property sheet...
a suggestion:
put spaces on either side of your operator
kineitem<>true --> kineitem <> true
Is kineitem defined to be Yes/No? Is kineitem in the form RecordSet?
Warm Regards,
Crystal
*

have an awesome day

*
MVP Access
Remote Programming and Training
strive4peace2006 at yahoo.com
*