Dear All
I have a problem that as the user entered wrong data then evaluations started
and the message displayed that enter correct data and then control should go
to that specific field for entering correct data. but it doesn't. the code I
used is as below.\
If CD <> Right(con, 1) Then
MsgBox " The check digit is " & CD
MsgBox "Please Enter Correct Customer
No"
DoCmd.GoToControl "conb"
End If
Please help.
Thanks.
Wasim

Signature
Wasim Yasin
Allen Browne - 25 Nov 2006 09:04 GMT
Try SetFocus, i.e.:
Me.conb.SetFocus

Signature
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
> I have a problem that as the user entered wrong data then evaluations
> started
[quoted text clipped - 11 lines]
> DoCmd.GoToControl "conb"
> End If