G
Guest
Hi,
I have a form with a combo box that filters another form based on type of
liquid selected. There are two fields that have liquids listed. Is there a
way to add an "or" statement to the following code to return all records that
have selected type of liquid in either field. I need to add the field
[FluidListedBySy].
Code currently used for one field filter is as follows:
Private Sub CboFluid_Click()
stLinkCriteria = "[Fluid] Like '*" & Me![CboLiquid] & "*'"
stDocName = "fCompiledList"
DoCmd.OpenForm stDocName, , , stLinkCriteria
End Sub
I've searched thru posts and can't seem to find exactly what I am wanting to
do.
As always, any help is greatly appreciated.
Thanks in advance,
Pam
I have a form with a combo box that filters another form based on type of
liquid selected. There are two fields that have liquids listed. Is there a
way to add an "or" statement to the following code to return all records that
have selected type of liquid in either field. I need to add the field
[FluidListedBySy].
Code currently used for one field filter is as follows:
Private Sub CboFluid_Click()
stLinkCriteria = "[Fluid] Like '*" & Me![CboLiquid] & "*'"
stDocName = "fCompiledList"
DoCmd.OpenForm stDocName, , , stLinkCriteria
End Sub
I've searched thru posts and can't seem to find exactly what I am wanting to
do.
As always, any help is greatly appreciated.
Thanks in advance,
Pam