G
Guest
I have several forms (layout is continuous) that wrote the following function
to run on when the user clicks on any field in my form. Can anyone tell me
why this function isn't finding null values, but finds any other values other
than null?
Thanks for all of your help!
Arlene
Public Function FilterIt()
Dim frm As Form, ctl As Control, strField As String
Set frm = Screen.ActiveForm
Set ctl = Screen.ActiveForm.ActiveControl
strField = ctl.Name
DoCmd.ApplyFilter , strField & "='" & ctl & "'"
Set frm = Nothing
Set ctl = Nothing
End Function
to run on when the user clicks on any field in my form. Can anyone tell me
why this function isn't finding null values, but finds any other values other
than null?
Thanks for all of your help!
Arlene
Public Function FilterIt()
Dim frm As Form, ctl As Control, strField As String
Set frm = Screen.ActiveForm
Set ctl = Screen.ActiveForm.ActiveControl
strField = ctl.Name
DoCmd.ApplyFilter , strField & "='" & ctl & "'"
Set frm = Nothing
Set ctl = Nothing
End Function