"John" <Jo**@nospam.infovis.co.uk> wrote in message
news:3f**********************@news.dial.pipex.com. ..
Hi
I am trying to display the no of characters in a text field while user is
typing them. I am using the onchange event as follows;
Private Sub mytextfield_Change()
Me.chars = Str(Len(Me.mytextfield)) & " Characters"
End Sub
However it does not work as the field is actually not committed at this
stage. Is there a way to do this?
Thanks
Regards
Use Me.Mytextfield.Text
When you use Me.mytextfield you are in fact referring to the default
property me.mytextfield.value which is the last saved data for the control.
While the control is being edited you can use me.mytextfield.text which
contains the data currently in the control.
HTH
Fletcher