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 / Database Design / April 2005

Tip: Looking for answers? Try searching our database.

Validation in entering data

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
russell_a_smith - 14 Apr 2005 18:58 GMT
i am trying to update a database in Lotus APPROCH, it uses dbf tables. I can
open the tables in access, but need to set up some forms to add new data. I
need to validate a time feild so data is entered in 1/4 hr increments as a
decimal, ie 4.25 or 4.50.

The Approch database did this with the MOD command, but I can not get this
to work in access.

The formula was MOD(timetable.timefield/0.25)=0

so if the remainer divided by 0.25 was 0 then the data was entered ok.

Can anyone help me  with this in access?

I have thought of a drop down list but data values could be upto 150hrs so a
long list!
Tim Ferguson - 14 Apr 2005 20:15 GMT

> so if the remainer divided by 0.25 was 0 then the data was entered ok.
>
> Can anyone help me  with this in access?

 Int(TimeField * 4)= TimeField * 4

> i am trying to update a database in Lotus APPROCH, it uses dbf tables.

 ... but if the data are still in dbf files, then I doubt that they are
capable of holding any kind of check contraints or validation rules.

You can put the validation in the ValidationRule of the control on the
form, or else use the BeforeUpdate event of the form or the control to do
the same thing.

Better would be to implement the whole thing in Access by importing the
tables and using the db facilities.

HTH

Tim F
russell_a_smith - 16 Apr 2005 09:36 GMT
Thanks that works a treat!

Russ

>> so if the remainer divided by 0.25 was 0 then the data was entered ok.
>>
[quoted text clipped - 17 lines]
>
> Tim F
 
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.