After going through your code one more time here's what I found and it's something that I suggested in my previous reply: the SetFocusSetFocus won't get fired while in debug mode and I did mentioned that before - that's what got you confused ...VB Code:
If Con.Name = "cmbClass" Or Con.Name = "cmbStudentName" Then [b]Con.SetFocus[/b] End If '... ElseIf TypeOf Con Is ComboBox Then If Con.Style <> 2 Then Con.Text = ""




Reply With Quote