Hi folks
all I am trying to do is to check that first & second names are entered and separated by a space
—————————————————-
Private Sub tbname_afterUpdate()
If InStr(tbName.Text, Chr(32)) = 0 Then
MsgBox (“Enter both christian & surname separated by a space”)
frmProfile.tbName.SetFocus
End If
frmProfile.tbName.SetFocus
End Sub
——————————————————
If no space then the tbName should receive the focus again.
Can someone please explain why this is not happening
The cursor momentarily flashes back to tbName but then the tab order seems to kick in and redirects it on its merry way
Regards
Geof