Dave Eyley
Registered User.
- Local time
- Today, 18:54
- Joined
- Sep 5, 2002
- Messages
- 254
I am building a search string called PropSearchstr which is used as a filter for a subform.
I have used this to filter by PropertyName, Status etc but I want to add a search field for a Yes/No field.
The short routine in the AFTERUPDATE property for the Combo which selects either Yes or No is -
If Not IsNull(Me!Leased) Then
PropSearchstr = PropSearchstr & " AND [Leased]= " & Me!Leased
Forms![PropertySpaceSearch]![PropertyList].Form.Filter = PropSearchstr
Forms![PropertySpaceSearch]![PropertyList].Form.FilterOn = True
DoCmd.Requery ("PropertyList")
End If
I'm missing some important point here and need some help if available.
Thanks
Dave E
I have used this to filter by PropertyName, Status etc but I want to add a search field for a Yes/No field.
The short routine in the AFTERUPDATE property for the Combo which selects either Yes or No is -
If Not IsNull(Me!Leased) Then
PropSearchstr = PropSearchstr & " AND [Leased]= " & Me!Leased
Forms![PropertySpaceSearch]![PropertyList].Form.Filter = PropSearchstr
Forms![PropertySpaceSearch]![PropertyList].Form.FilterOn = True
DoCmd.Requery ("PropertyList")
End If
I'm missing some important point here and need some help if available.
Thanks
Dave E