CJ said:
Thanks for the heads up John. At some point the people entering in the
data have to take some responsibility for their actions. The calculated
results in this case should make any errors very evident.
Thanks again.
CJ
The operative word here is "should". If the amount is expected to be within
a certain range you could have a message box appear if it falls outside of
that range. In a database used to log training the time is entered in hours
or decimal fractions (to the nearest quarter hour), so that 30 minutes is
..5. I have seen it entered as 30 hours in one day, but people tend to input
the number and move on without wondering about an unusual result. On the
other hand, new employees receive on-the-job training, so 30 hours in a
single record is not beyond reason. If training records were entered every
day it may be possible to avoid that problem, but I'm not going to ask
people to enter five records where they are accustomed to entering one.
They have other things to do. The other thing that happens is that 30
minutes gets entered as .30. I ended up trapping those types of entries,
asking in the first case if they really mean 30 hours, and in the second if
they mean 30 minutes (.5 hours).
All I'm saying is that counting on users to assess the results of
calculations can be risky, especially if the users are functioning as data
entry people who have no real criteria by which to assess the results. You
as the developer are in a position to help people do their jobs by using
automation to question results that do not seem to make sense.