• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 443
  • 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

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