P
Pete
Re Access 2003 SP3
I have a form with 4 (unbound) combos in the Form Header, for the user to
either select a value or leave blank. These then provide criteria for the
underlying query of the form.
These combos, when a value from the list is selected, hold the FK in the
textbox portion for the query to reference.
I am using criteria similar to:-
Like "*" & [Forms]![frmSearch]![cboMainCategoryID] & "*"
Supposing I have a category info of
ID = 2, Description = Furniture
If the combo contains the number 2 (Furniture) for example, additional
Categories like 12, 21, 32 etc.... in other words, any ID containing a 2 will
also be returned.
Therefore, is there any way to filter out the other ID's containing a 2, or
will I have to use the Like operator on the Description field; which will no
doubt considerably slow the query?
Many thanks.
Pete.
I have a form with 4 (unbound) combos in the Form Header, for the user to
either select a value or leave blank. These then provide criteria for the
underlying query of the form.
These combos, when a value from the list is selected, hold the FK in the
textbox portion for the query to reference.
I am using criteria similar to:-
Like "*" & [Forms]![frmSearch]![cboMainCategoryID] & "*"
Supposing I have a category info of
ID = 2, Description = Furniture
If the combo contains the number 2 (Furniture) for example, additional
Categories like 12, 21, 32 etc.... in other words, any ID containing a 2 will
also be returned.
Therefore, is there any way to filter out the other ID's containing a 2, or
will I have to use the Like operator on the Description field; which will no
doubt considerably slow the query?
Many thanks.
Pete.