Hi all,
Why isn't the code below focusing on my textbox? I get the message box but when i click OK the focus is not set on my textbox where the wrong data has been entered.
Any help would be appreciated.
Cheers,
Why isn't the code below focusing on my textbox? I get the message box but when i click OK the focus is not set on my textbox where the wrong data has been entered.
Code:
Private Sub TextBox12_AfterUpdate()
If TextBox12.Enabled And TextBox12.Value < TextBox11.Value Then
MsgBox "Please check reading - it appears to be lower than the first reading."
TextBox12.SetFocus
End If
End Sub
Any help would be appreciated.
Cheers,