Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms Programming / November 2006

Tip: Looking for answers? Try searching our database.

Trasfering control to specific field

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
wasimsono - 25 Nov 2006 08:37 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.