I have a continuous form (for entering order line-items) where each iteration has three fields: an "Item #" textbox, a "Quantity" textbox, and a "Price" combo box.
I'm trying to set up the "Price" combobox to query my "ItemPrices" table for the price related to the product/quantity entered in the textboxes.
My problem is that it seems to be returning the price for the product/quantity given for the FIRST continuous form iteration.
So if I have two items on an order, I fill in the Item # and Price for the first item, and when I click on the combo box for that iteration it returns the correct price. But when I fill in an Item # and Price for the second item and then click on the combo box for the second iteration, it returns the price for the first iteration. . .
It seems that somehow my query needs to be able to get the values from the "current" iteration's controls.
Hope this is clear. . . difficult to describe!
VBAjedi![[swords] [swords] [swords]](/data/assets/smilies/swords.gif)
I'm trying to set up the "Price" combobox to query my "ItemPrices" table for the price related to the product/quantity entered in the textboxes.
My problem is that it seems to be returning the price for the product/quantity given for the FIRST continuous form iteration.
So if I have two items on an order, I fill in the Item # and Price for the first item, and when I click on the combo box for that iteration it returns the correct price. But when I fill in an Item # and Price for the second item and then click on the combo box for the second iteration, it returns the price for the first iteration. . .
It seems that somehow my query needs to be able to get the values from the "current" iteration's controls.
Hope this is clear. . . difficult to describe!
VBAjedi
![[swords] [swords] [swords]](/data/assets/smilies/swords.gif)