I would like to know how to do a search in a text box on Form X that closes Form X and opens Form Y and looks for the information in Y.
The search works perfectly when preformed while on Form Y. The search box is identical on both X and Y, its just getting X to point at Y when executing this command.
The search works perfectly when preformed while on Form Y. The search box is identical on both X and Y, its just getting X to point at Y when executing this command.
Code:
Dim strFilter As String
strFilter = ""
If IsNull(Me!fnSRH) Then
strFilter = strFilter
Else
If strFilter = "" Then
strFilter = strFilter & "FullName Like '*" & Me!fnSRH & "*'"
Else
strFilter = strFilter & " AND FullName Like '*" & Me!fnSRH & "*'"
End If
End If
Me.Filter = strFilter
Me.FilterOn = True
Me!fnSRH = Null
Comment