-3

Form has some textbox, i need to check for empty fields. How select all textbox on the form?

May be create variable: Dim TBox AS TextBox

1 Answers1

0
If (TextBox1.Text = "") then
Msgbox "TextBox value is empty"
End If
Siva
  • 1,129
  • 1
  • 8
  • 13
  • What shoud i do if in the form 100 textboxs? – Egor kaspersky Feb 07 '16 at 10:16
  • You can collect all text boxes controls and iterate through all the text boxes. Can try searching for it in Google, I'm texting from Mobile so can't give you the code – Siva Feb 07 '16 at 12:34
  • Check this http://stackoverflow.com/questions/4673950/loop-over-all-textboxes-in-a-form-including-those-inside-a-groupbox – Siva Feb 07 '16 at 12:38