Steven
Glad to hear you are working in a form. That make this easier. Your form
has a multitude of events you could consider using to do the kind of
validation you described.
One approach would be to use the BeforeUpdate event of the control with the
"hours" in it, and use something like DSum() to inspect the "total-so-far",
adjusting the value in the control THIS time to 24 minus what ever total's
been used. If the amount ends up negative, cancel the update and set it to
the amount remaining.
Good luck
Jeff Boyce
<Access MVP>
"Steven Phillips via AccessMonster.com" <(E-Mail Removed)> wrote in
message news:(E-Mail Removed)...
> Jeff,
> Sorry for the confusion. I enter the data in a form which feeds a table.
> The table has the column available hours, as well as date, machine#, etc.
>
> Steve
>
> --
> Message posted via http://www.accessmonster.com