PDA

View Full Version : Defining a Textbox in a form



zizou
07-10-2008, 07:57 AM
Hi all. Was wondering if anyone could help me out with answering this question. I am assigning variables to Textboxs in my code. The problem is that I have two forms and each Form has a Text1 and Text2 and so on. So when I am assigning these Text1 and Text2 to a variable in my code I do not know how to differenciate them. Can anyone help or give me the simple code to differ the two? All help is much appreciated. Thanks.

nst1107
11-19-2008, 04:41 PM
Assuming your two forms are named "UserForm1" and "UserForm2", the textboxes should be referred to as UserForm1.Text1, UserForm2.Text1, and so on.