• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 430
  • Last Modified:

Show number of characters as you type

Dear experts -
I am trying to display the number of characters in a field AS YOU TYPE. I put a calculated field on the form showing length of the field - I tried adding the 'text' and 'value' keywords, and put a 'requery' on that control on the change event of the control with the text i'm trying to show the length of.
(I saw online that focus needs to be on the main control in order to use the 'text' keyword; but i thought 'value' might work)
Any ideas?
Thanks!
0
terpsichore
Asked:
terpsichore
  • 2
1 Solution
 
Gustav BrockCIOCommented:
Use the OnChange event. Then

Me!txtTextLength.Value = Len(Me!txtInput.Text)

/gustav
0
 
terpsichoreAuthor Commented:
this works; i found i can also, in the change event of the main control, simply change the control source of the control displaying the current length
0
 
Gustav BrockCIOCommented:
Great!

/gustav
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now