I know how to cycle through all the controls on a form with For Each Ctl in
Forms!.../Next and how to check if the control is a text box inside the loop by
checking the ControlType property. Is there a way to directly cycle through only
the textboxes on a form? Something like --
For Each Ctl acTextbox in Forms!...
I know how to cycle through all the controls on a form with For Each Ctl in
Forms!.../Next and how to check if the control is a text box inside the loop by
checking the ControlType property. Is there a way to directly cycle through only
the textboxes on a form? Something like --
For Each Ctl acTextbox in Forms!...
If you are going to be looping through the textbox controls a number of
times, you can always load the textbox controls into a collection on form
open and from then on cycle through that collection only.
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.