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 SetFocus
VB Code:
  1. If Con.Name = "cmbClass" Or Con.Name = "cmbStudentName" Then
  2.                 [b]Con.SetFocus[/b]
  3.             End If
  4.             '...
  5.             ElseIf TypeOf Con Is ComboBox Then
  6.                 If Con.Style <> 2 Then Con.Text = ""
SetFocus won't get fired while in debug mode and I did mentioned that before - that's what got you confused ...