MasterRacker
New member
Access 2007. I have a subform with 3 textboxes: Value, Quantity, Total.
I also have a combo box to choose an item. When an item is chosen, a dlookup will find the value and populate the Value box and set focus to Value. All pretty basic stuff. Value and Quantity both have AfterUpdate events to call a function to calculate the total by multiplying them together.
The problem is when the combo populates the value and I tab out of it, the AfterUpdate does not fire and the total is not updated. If I type in a value and tab out, everything updates correctly.
What might be preventing the event from firing? Is there a way in VBA to manually fire an event?
Is VBA populated data buffered in the form and not committed the same way as typed info?
Jeff
[small][purple]It's never too early to begin preparing for [/purple]International Talk Like a Pirate Day
"The software I buy sucks, The software I write sucks. It's time to give up and have a beer..." - Me[/small]
I also have a combo box to choose an item. When an item is chosen, a dlookup will find the value and populate the Value box and set focus to Value. All pretty basic stuff. Value and Quantity both have AfterUpdate events to call a function to calculate the total by multiplying them together.
The problem is when the combo populates the value and I tab out of it, the AfterUpdate does not fire and the total is not updated. If I type in a value and tab out, everything updates correctly.
What might be preventing the event from firing? Is there a way in VBA to manually fire an event?
Is VBA populated data buffered in the form and not committed the same way as typed info?
Jeff
[small][purple]It's never too early to begin preparing for [/purple]International Talk Like a Pirate Day
"The software I buy sucks, The software I write sucks. It's time to give up and have a beer..." - Me[/small]