D
Don S
I have a form Projects Add/Edit Form]![Lighting] (a tabbed form) with a combo
box cboTypePole1 which uses a query TypePole1qry to select “Desc†(text) and
“Price†(currency) from a table of products. This works fine. The SQL is
SELECT TypePole.Desc, TypePole.Price, TypePole.TypePole FROM TypePole ORDER
BY TypePole.TypePole;
I have another combo box cboPrice which I want to have the value of “Priceâ€
from that corresponds to the product selected in cboTypePole1. My SQL for
this is SELECT TypePole1qry.Price, TypePole1qry.Desc FROM TypePole1qry ORDER
BY TypePole1qry.Desc;
By using an After Update Event macro (RequeryTypePole,Condition
[Forms]![Projects Add/Edit Form]![Lighting].[Form]![TypePole1] Is Not Null,
RunCommand, Refresh) I have been able to get the query for the cboPrice combo
box to display only the “Price†which matches the “Desc†in cboTypePole1.
However I then have to manually select this value to populate cboPrice.
I have tried the “SetValue†action as part of the macro but without success.
Is there are way for me to set the value of cboPrice without having to
manually select it?
box cboTypePole1 which uses a query TypePole1qry to select “Desc†(text) and
“Price†(currency) from a table of products. This works fine. The SQL is
SELECT TypePole.Desc, TypePole.Price, TypePole.TypePole FROM TypePole ORDER
BY TypePole.TypePole;
I have another combo box cboPrice which I want to have the value of “Priceâ€
from that corresponds to the product selected in cboTypePole1. My SQL for
this is SELECT TypePole1qry.Price, TypePole1qry.Desc FROM TypePole1qry ORDER
BY TypePole1qry.Desc;
By using an After Update Event macro (RequeryTypePole,Condition
[Forms]![Projects Add/Edit Form]![Lighting].[Form]![TypePole1] Is Not Null,
RunCommand, Refresh) I have been able to get the query for the cboPrice combo
box to display only the “Price†which matches the “Desc†in cboTypePole1.
However I then have to manually select this value to populate cboPrice.
I have tried the “SetValue†action as part of the macro but without success.
Is there are way for me to set the value of cboPrice without having to
manually select it?