thardyjackson
Registered User.
- Local time
- Today, 13:12
- Joined
- May 27, 2013
- Messages
- 45
I have a form with customer info. When user changes a value in the productChosen combobox, other fields should change. I have experimented with "After Update" and "On Change."
In both situations, I see identical behavior with respect to the underlying table -- the table is getting updated only after I change records. Isn't the "On Change" supposed to change the data in the table once I start typing? I prefer this.
The code I'm using when I run the two experiments:
In both situations, I see identical behavior with respect to the underlying table -- the table is getting updated only after I change records. Isn't the "On Change" supposed to change the data in the table once I start typing? I prefer this.
The code I'm using when I run the two experiments:
Code:
Private Sub productChosen_Change()
Me.statusWelcomeMsg = "Not sent" ' resets statusWelcomeMsg in case welcome msg had been sent already
Me.price = Me.productChosen.Column(1)
Me.fee = Me.productChosen.Column(2)
Me.depositMin = Me.productChosen.Column(3)
Me.pmtMo1Expected = Me.productChosen.Column(4)
Me.pmtMo2Expected = Me.productChosen.Column(5)
Me.pmtMo3Expected = Me.productChosen.Column(6)
Me.pmtMo4Expected = Me.productChosen.Column(7)
Me.pmtMo5Expected = Me.productChosen.Column(8)
Me.pmtMo6Expected = Me.productChosen.Column(9)
End Sub
Code:
Private Sub productChosen_AfterUpdate()
Me.statusWelcomeMsg = "Not sent" ' resets statusWelcomeMsg in case welcome msg had been sent already
Me.price = Me.productChosen.Column(1)
Me.fee = Me.productChosen.Column(2)
Me.depositMin = Me.productChosen.Column(3)
Me.pmtMo1Expected = Me.productChosen.Column(4)
Me.pmtMo2Expected = Me.productChosen.Column(5)
Me.pmtMo3Expected = Me.productChosen.Column(6)
Me.pmtMo4Expected = Me.productChosen.Column(7)
Me.pmtMo5Expected = Me.productChosen.Column(8)
Me.pmtMo6Expected = Me.productChosen.Column(9)
End Sub