I currently writing a program for my QA department where the user has to do the following
Enter a part number in a Text Box (example part number ag782241)
Hit “OK” on a Command Button
The program then hides UserForm1 and then it will search for UserFormag78224 1
It then shows the UserFormag78224 1
I have about 500 different part numbers
Right now I have my program to go directly to UserFormag78224 1
Please help me were I’m a novice in VB
_______________ _______________ _______________ _______________ _______________ __
Enter a part number in a Text Box (example part number ag782241)
Hit “OK” on a Command Button
The program then hides UserForm1 and then it will search for UserFormag78224 1
It then shows the UserFormag78224 1
I have about 500 different part numbers
Right now I have my program to go directly to UserFormag78224 1
Please help me were I’m a novice in VB
_______________ _______________ _______________ _______________ _______________ __
Code:
Private Sub btnOK_Click()
' Check blanks
If Trim(TextBox1.Text) <= "" Then
MsgResp = MsgBox("You must enter PART NUMBER", vbYes, "Part Number")
TextBox1.SetFocus
Exit Sub
End If
UserForm1.Hide
UserFormag782241.Show (page1)
Comment