I’m trying to have a text box display the result of a calculation based on two other text boxes. The text box, txtIntptotal, should show the result of the contents of txtIntpHours multiplied by the contents of txtIntpRate. I used the following code, in the After Update property for txtIntpHours, which worked on another form.
Private Sub txtIntpHours_AfterUpdate()
Me.txtIntpTotal = Me.txtIntpHours * Me.txtIntpRate
End Sub
When I enter a value txtIntpRate and then in txtIntpHours, I get the following error message (the db is called OPTAReports):
The expression you entered as the event property setting produced the following problem while OPTAReports was communicating with the OLE server or ActiveXControl.
*The expression may not result in the name of a user-defined function, or [Event procedure],
*There may have been an error in evaluating the function, event, or macro.
Can anyone see where I’m going wrong?
Thanks,
Henry
Private Sub txtIntpHours_AfterUpdate()
Me.txtIntpTotal = Me.txtIntpHours * Me.txtIntpRate
End Sub
When I enter a value txtIntpRate and then in txtIntpHours, I get the following error message (the db is called OPTAReports):
The expression you entered as the event property setting produced the following problem while OPTAReports was communicating with the OLE server or ActiveXControl.
*The expression may not result in the name of a user-defined function, or [Event procedure],
*There may have been an error in evaluating the function, event, or macro.
Can anyone see where I’m going wrong?
Thanks,
Henry
Last edited: