jkaufman
09-18-2013, 10:36 AM
I am attempting to walk a user through a userform by controling how the data entry. When the Userform is first activated the user is allowed to enter information in a textbox - once the information is entered the next textbox is enabled - the label highlighted - and I attempt to put the cursor in that textbox with the Setfocus property.
When I step through the code - the cursor does go to the proper textbox but then vanishes immediately. See my code below.
Can someone help me with what I am not doing correctly? Thanks.
Private Sub TextBox2_AfterUpdate()
Label2.ForeColor = vbBlack
Label3.Enabled = True
TextBox3.Enabled = True
Label3.ForeColor = vbRed
TextBox3.SetFocus
End Sub
When I step through the code - the cursor does go to the proper textbox but then vanishes immediately. See my code below.
Can someone help me with what I am not doing correctly? Thanks.
Private Sub TextBox2_AfterUpdate()
Label2.ForeColor = vbBlack
Label3.Enabled = True
TextBox3.Enabled = True
Label3.ForeColor = vbRed
TextBox3.SetFocus
End Sub