Jan 23, 2002 #1 zeroc00l IS-IT--Management Apr 13, 2001 2 SI Hi! How could I count characters in a textbox and display the number of characters in another textbox? Thanks! PS. Sorry about my english! ZeroC00l
Hi! How could I count characters in a textbox and display the number of characters in another textbox? Thanks! PS. Sorry about my english! ZeroC00l
Jan 23, 2002 #2 jebry Programmer Aug 6, 2001 3,006 US Hi! Create the label, or textbox, and set it's visible property to false and then add this code to your unbound text box: Private Sub YourTextBox_GetFocus() YourLabel.Visible = True YourLabel.Caption = Nz(Len(YourTextBox), 0) End Sub Private Sub YourTextBox_Change() YourLabel.Caption = Nz(Len(YourTextBox), 0) End Sub Private Sub YourTextBox_LostFocus() YourLabel.Visible = False End Sub This should give you a start. hth Jeff Bridgham bridgham@purdue.edu Upvote 0 Downvote
Hi! Create the label, or textbox, and set it's visible property to false and then add this code to your unbound text box: Private Sub YourTextBox_GetFocus() YourLabel.Visible = True YourLabel.Caption = Nz(Len(YourTextBox), 0) End Sub Private Sub YourTextBox_Change() YourLabel.Caption = Nz(Len(YourTextBox), 0) End Sub Private Sub YourTextBox_LostFocus() YourLabel.Visible = False End Sub This should give you a start. hth Jeff Bridgham bridgham@purdue.edu
Jan 23, 2002 Thread starter #3 zeroc00l IS-IT--Management Apr 13, 2001 2 SI Hi jebry! Sorry about this post i had allready found your reply to olekr! Thanks, that helps a lot!! ZeroC00l! Upvote 0 Downvote
Hi jebry! Sorry about this post i had allready found your reply to olekr! Thanks, that helps a lot!! ZeroC00l!