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 / October 2005

Tip: Looking for answers? Try searching our database.

Data Validation

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Nick Bradbury - 31 Oct 2005 13:12 GMT
Hello

I have a form to enable order details to be entered, some products have a
"Standing_Charge", in these cases the "Rental_Period" must also be entered
otherwise the cost is not calculated correctly. How can I alert the user to
enter this value and to ensure that that a value is added if a
"Standing_Charge" is applied.

Thanks

Nick
Jeff Boyce - 31 Oct 2005 14:12 GMT
Nick

If you add code to the [Standing_Charge] field's AfterUpdate event, you
could:

 1. ensure that a valid value/choice had been made
 2. add a message indicating that the [Rental_Period] field must be filled
in
 3. set the focus to (?and highlight) the [Rental_Period] field

To ensure that the entire transaction doesn't finish without the above, you
could add code to the form's BeforeUpdate event to check on the
possibilities.

Signature

Regards

Jeff Boyce
<Office/Access MVP>

> Hello
>
[quoted text clipped - 7 lines]
>
> Nick
Klatuu - 31 Oct 2005 14:16 GMT
Use the Before Update events of the controls you need to validate.  It will
take some VBA to get it done.

> Hello
>
[quoted text clipped - 7 lines]
>
> Nick
Nick Bradbury - 01 Nov 2005 00:31 GMT
Problem solved, many thanks. I really must learn VBA

Cheers
Nick

> Hello
>
[quoted text clipped - 7 lines]
>
> Nick
 
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.