Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Data update not shown after change event 1

Status
Not open for further replies.

oticonaus

Technical User
Dec 16, 2003
96
AU
I have 2 text boxes. txtA allows a message to be typed in. txtB shows the number of characters in txtA. However, I want the value in txtB to update as each character is typed in (or deleted) much like an SMS message. The following code only updates the value in txtB on the first key press in txtA. Do I need to refresh txtB somehow?

Code:
Private Sub txtInvestigation_Change()
    Me.txtCommentCount.Value = Len(Me.txtInvestigation)
End Sub
 
Me.txtCommentCount.Value = Len(Me.txtInvestigation.Text)

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top