C
Chris Large
Hi
Put an unbound control on your form and set its control
source to
=Round(DateDiff("n",[SignIn],[SignOut])/60,2)
of course this won't store the value in a table, but then
I'm guessing you are storing SignIn and SignOut so you
don't need to store the difference as you can calculate it
easily when required.
hth
Chris
when a user updates or tabs from the signout field.
exists)
execute this function on each.
Put an unbound control on your form and set its control
source to
=Round(DateDiff("n",[SignIn],[SignOut])/60,2)
of course this won't store the value in a table, but then
I'm guessing you are storing SignIn and SignOut so you
don't need to store the difference as you can calculate it
easily when required.
hth
Chris
out times for a datashee. It works for the record level-----Original Message-----
Hi guys:
I have created a function that calculates sign in/ sign
when a user updates or tabs from the signout field.
group of records (where the parent / child relationshipcode:
TimeTotal = Round(DateDiff("n", Me.SignIn, Me.SignOut) / 60, 2)
Now I am requested to set all the signout fields in a
exists)
would loop through the records for that datasheet andSo, question is how do I reuse my code, something that
execute this function on each.
subformrecord.SignOut) / 60, 2)Something like this
for each record in subform
TimeTotal = Round(DateDiff("n", subformrecord.SignIn,