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 / May 2007

Tip: Looking for answers? Try searching our database.

field validation

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
patti - 04 May 2007 02:48 GMT
is gthere a way to vaildate field by field? i mean, focus remains locked on
control until requirements are met before field moves to next control?

thanks.

patti
Rick Brandt - 04 May 2007 03:05 GMT
> is gthere a way to vaildate field by field? i mean, focus remains locked on
> control until requirements are met before field moves to next control?

Sure, use the BeforeUpdate event of the control and set the Cancel argument to
true when the validation fails.  That of course won't help if they never enter
anything in the control at all so you also need to test in the BeforeUpdate of
the form.

Signature

Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt   at   Hunter   dot   com

patti - 04 May 2007 21:47 GMT
thanks rick!

> > is gthere a way to vaildate field by field? i mean, focus remains locked on
> > control until requirements are met before field moves to next control?
[quoted text clipped - 3 lines]
> anything in the control at all so you also need to test in the BeforeUpdate of
> the form.
 
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



©2009 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.