|
-
Oct 19th, 2000, 02:48 PM
#1
Thread Starter
Dazed Member
ok ok now that i got your attention. well it's not that bad
{{{laughing}}}
im trying to just simply trying to print out a list of textbox names that are on a form but all i can figure out
is how to print every control name on a form.
Dim txt as Object
For Each txt In frmAccountSetup.Controls
Debug.Print txt.Name
Next txt
' is there anyway to get just the textbox names??
Thanks All
-
Oct 19th, 2000, 03:07 PM
#2
Use TypeOf to check if it's a TextBox.
Code:
Dim txt As Control
For Each txt In Controls
If TypeOf txt Is TextBox Then Debug.Print txt.Name
Next txt
-
Oct 19th, 2000, 03:13 PM
#3
Lively Member
Here is the solution
Hi Dilenger4,
Yes there is solution to find the names of all the textboxes present in a form.Here is the code..
Dim ctl As Control
For Each ctl In Me.Controls
If TypeOf ctl Is TextBox Then
Debug.Print ctl.Name
End If
Next
Hope this will help you
Regards
-
Oct 19th, 2000, 03:13 PM
#4
Thread Starter
Dazed Member
Ahhhhhhhh. I has once again been enlightened!
Thanks..... =C)
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
|