Show numbers of lines in a textbox

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi!!

I have thsi code from Dirk goldgar there
in a variable have the numbers of lines ina memofield
Now i want to show the numbers of lines in a textbox or label
How can i do this?
If i write txtboxname.text = nmlines
then i shall set focus on txtboxname
but the code is in my memofield in Change event

so i can't just set focus on my txtboxname

hope someone can help

regards

alvin
 
Hi,

Change the Value property, not the Text property. The Text property is "what
is currently being actively typed", so has meaning only if the control has
focus. The Value property is, highly probably, what you want: it is the
final "value" that is to be saved in the table, eventually. There is also
the Oldvalue property, which is the last "saved" (validated and the whole
check made) value in the table.


Hoping it may help,
Vanderghast, Access MVP
 
Back
Top