C
Coleman
I have a Search form that allows the user to put in criteria and a record set
is returned. I have everything working except...I have a combox that
provides for a list of "Positions". I would like to use this box to return
all records in the table where the fields "PositionA", "PositionB", OR
"PositionC" contain the SAME criteria pulled down from the List. I have the
following :
If Not IsNull(Me.strPosition) Then
'Add the Predicate
strWhere = strWhere & " AND " & "tblQAR.[strPositionA] = " &
Me.strPosition & ""
End If
This works great for a single field, but how do I extend this to cover the
"OR" Position B "OR" Position C ? I am novice at this coding and seek some
coding advice.
is returned. I have everything working except...I have a combox that
provides for a list of "Positions". I would like to use this box to return
all records in the table where the fields "PositionA", "PositionB", OR
"PositionC" contain the SAME criteria pulled down from the List. I have the
following :
If Not IsNull(Me.strPosition) Then
'Add the Predicate
strWhere = strWhere & " AND " & "tblQAR.[strPositionA] = " &
Me.strPosition & ""
End If
This works great for a single field, but how do I extend this to cover the
"OR" Position B "OR" Position C ? I am novice at this coding and seek some
coding advice.