Data Entry field on Form - keep focus

  • Thread starter Thread starter Kwesi Thomas
  • Start date Start date
K

Kwesi Thomas

Hi Guys,

I'm tring to get the first data entry field on my form to
KEEP the focus until a valid entry has been made.

I am trying to stop the user from going to the next field
until a valid entry has been made into the field.

Any ideas?
 
In the BeforeUpdate event of the control, check for a valid entry. If it isn't valid,
cancel the update.

Example:

If (your validity check here) Then
Msgbox ("Invalid data")
Cancel = True
Me.ActiveControl.Undo
End If
 
Back
Top