Using value in unbound combo box in a calculation for another fiel

G

Guest

I've created a combo box. Col 1 is procedure code, col 2 is a rate. The
combo box uses the procedure code to look up a rate. I want to use the rate
value to calculate the total rate by multiplying it by the quantity field.
What do I call the field in my calculated control? Thanks for your help, cm
 
G

Guest

In the control source of the total field you can write

=[ComboName].Column(1) * [QuantityTextBox]

Note: the column count start with 0
 
B

Brian Bastl

cindy,

you need to reference the column index of your combobox control:

=[YourComboBox].[Column](1) * [YourQuantityTextBox]

HTH,
Brian


cindy said:
I've created a combo box. Col 1 is procedure code, col 2 is a rate. The
combo box uses the procedure code to look up a rate. I want to use the rate
value to calculate the total rate by multiplying it by the quantity field.
What do I call the field in my calculated control? Thanks for your help,
cm
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top