J
JIM
I've been messing around with this for hours and can't make it work. Here's
my code:
Private Sub txtWORep_AfterUpdate()
If txtWORep <> "B" And txtWORep <> "M" And txtWORep <> "R" Then
Beep
If vbOKOnly = MsgBox("Please enter B, M, or R", vbOKOnly) Then
Me.txtWORep = " "
Me.txtWORep.SetFocus
Else
Me.txtTenant.SetFocus
End If
End If
End Sub
When OK is clicked I'd like to blank out control and then reset focus to
control but instead it just goes to next input control and doesn't blank
field. What am I missing?
TIA
my code:
Private Sub txtWORep_AfterUpdate()
If txtWORep <> "B" And txtWORep <> "M" And txtWORep <> "R" Then
Beep
If vbOKOnly = MsgBox("Please enter B, M, or R", vbOKOnly) Then
Me.txtWORep = " "
Me.txtWORep.SetFocus
Else
Me.txtTenant.SetFocus
End If
End If
End Sub
When OK is clicked I'd like to blank out control and then reset focus to
control but instead it just goes to next input control and doesn't blank
field. What am I missing?
TIA