G
Guest
I need some HELP! I have a bound form and added an Unbound Combo Box. The
values are looked up in a a table(SQL query-two fields on grid with 1st field
bound). The box displays the values as it should. When the form opens, all
records are displayed. What I want to do is...
Select a value from the combo box and have the form filtered to match the
selected value in the combo box. I have attached a simple expression on the
AfterUpdate Event to the combo box:
DoCmd.ApplyFilter "", "[Competitive Line] = [Comp]"
When I change a value in the combo box (Unbound and named Comp), I get a
message asking for a Parameter Value. I type in that value and the filter is
applied and works properly. Why am I getting the Enter Parameter Value
message - Comp? It is as if the selected value is not recognized or stored
after I select, but works when I type it in.
Any suggestions or a better way to go about doing what I want?
values are looked up in a a table(SQL query-two fields on grid with 1st field
bound). The box displays the values as it should. When the form opens, all
records are displayed. What I want to do is...
Select a value from the combo box and have the form filtered to match the
selected value in the combo box. I have attached a simple expression on the
AfterUpdate Event to the combo box:
DoCmd.ApplyFilter "", "[Competitive Line] = [Comp]"
When I change a value in the combo box (Unbound and named Comp), I get a
message asking for a Parameter Value. I type in that value and the filter is
applied and works properly. Why am I getting the Enter Parameter Value
message - Comp? It is as if the selected value is not recognized or stored
after I select, but works when I type it in.
Any suggestions or a better way to go about doing what I want?