Discussion:
Count textboxes on forms
(too old to reply)
David
2004-06-05 14:52:20 UTC
Permalink
hi,

i would like to count all textboxes on my form. the method with
"me.controls.count" does not work, because it gives back all controls on
my form which are more than the number of textboxes.

how can i solve this?

thx for your answers!

david
Tim^^BOB
2004-06-06 01:28:55 UTC
Permalink
Hi David,

I have one solution to your problem, but I think there may be another
out there because this one might require you to do some changing of
your controls. You can easily tell how many textboxes there are on a
form if they are in a control array. If you have them in an array, to
find out how many there are just use:

TextboxNumber = txtArray.Ubound

This solution might mean you need to put all your textboxes back on
the form.

Loading...