G
Guest
Hello...
I'm trying to apply a filter on a form (main) from two sources (tables).
The first set of combo boxes pull from a main table and populate the
remaining text boxes on the main form. This works with no problem. I have
another combo box that pulls from another table of stored values. However,
when I apply the filter, I receive errors. I know this can be done and more
than likely, my code is incorrect. I've copied and pasted the code...if
anyone can help, I'd really appreciate it...
If Not IsNull(Me.ManufacturingNamecmbo) Then
strWhere = strWhere & "([Manufacturing Name] Like ""*" &
Me.ManufacturingNamecmbo & "*"") AND "
End If
'The above works'
If Not IsNull(Me.Productnamecmbo) Then
With Forms!frm_inputform!productname.frm_product_sub
.Filter = strWhere
.FilterOn = True
End With
End If
I'm trying to apply a filter on a form (main) from two sources (tables).
The first set of combo boxes pull from a main table and populate the
remaining text boxes on the main form. This works with no problem. I have
another combo box that pulls from another table of stored values. However,
when I apply the filter, I receive errors. I know this can be done and more
than likely, my code is incorrect. I've copied and pasted the code...if
anyone can help, I'd really appreciate it...
If Not IsNull(Me.ManufacturingNamecmbo) Then
strWhere = strWhere & "([Manufacturing Name] Like ""*" &
Me.ManufacturingNamecmbo & "*"") AND "
End If
'The above works'
If Not IsNull(Me.Productnamecmbo) Then
With Forms!frm_inputform!productname.frm_product_sub
.Filter = strWhere
.FilterOn = True
End With
End If