|
-
Jul 3rd, 2004, 06:30 AM
#1
Thread Starter
Lively Member
Check TextBox Value
i have about 21 textbox in my form
example i got 1 client name textbox and 1 current age textbox and one is profit textbox
how can i check all the textbox in my form ???
the client name text box is string
the current aga textbox is number
the profit textbox is double
how to use the for loop to check all the textbox ??
can someone please help me ???
and i have the coding below
Dim Ctr As Control
For Each Ctr In Me.Controls
If TypeOf Ctr Is TextBox Then
If Ctr.Text = "" Then
CheckTextBoxIsEmpty += 1
Else
CheckTextBoxIsEmpty = 0
End If
End If
Next
this check is emty or not
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|