I have a bunch of text boxes in a form which show a number according to a choice, which is then fed into a text box bound to a sum of these boxes.
I want to have another text box display a string of text, dependent on the sum eg. display "message" when sum > value.
Now I think I can do this simply in the AfterUpdate event of the sum using If statements in the code but I can't get it to display my message.
Here's what i've written in the code:
Private Sub txtInsCalc_AfterUpdate()
Dim txtInsCalc As Integer
Dim txtInsAction As String
If txtInsCalc > 32 Then
txtInsAction = "Strip insulation and inspect"
End If
End Sub
I'm sure this can be done real simply so help would be most welcome..
I want to have another text box display a string of text, dependent on the sum eg. display "message" when sum > value.
Now I think I can do this simply in the AfterUpdate event of the sum using If statements in the code but I can't get it to display my message.
Here's what i've written in the code:
Private Sub txtInsCalc_AfterUpdate()
Dim txtInsCalc As Integer
Dim txtInsAction As String
If txtInsCalc > 32 Then
txtInsAction = "Strip insulation and inspect"
End If
End Sub
I'm sure this can be done real simply so help would be most welcome..