Thank you as well!!! Again, I really appreciate the time people take to
answer questions on-line.
--
Thanks,
Andy
"John Vinson" wrote:
> On Tue, 5 Sep 2006 06:07:02 -0700, Andy <(E-Mail Removed)>
> wrote:
>
> >I am building a acces tool to track sepsis infections. There are several
> >date variables. I don't know how to include a check box that would
> >automatically insert the registration date into all of the other date fields
> >if they are the same.
>
> You could put code into the AfterUpdate event of the checkbox control
> like:
>
> Private Sub chkAllTimes_AfterUpdate()
> If Me!chkAllTimes Then ' did the user check the box?
> Me!txtThisTime = NZ(Me!txtThisTime, Me!txtRegistrationDate)
> Me!txtThatTime = NZ(Me!txtThisTime, Me!txtRegistrationDate)
> <etc>
> End If
> End Sub
>
> The NZ() function ensures that only *blank* controls will be
> overwritten; someone might have entered some data and then clicked the
> checkbox.
>
> >I also need help in calculating minuetues across 24 hour time period.
>
> An Access date/time value is stored as a simple number - a count of
> days and fractions of a day (times) since midnight, December 30, 1899.
> As such it doesn't explicitly contain minutes and hours. If you have
> two date/time values you can use the DateDiff() function to calculate
> the minutes (or seconds, or years, or any other time unit) between
> them:
>
> DateDiff("n", [CheckIn], [CheckOut])
>
> "n" means "miNutes"; "m" is "Months".
>
>
> John W. Vinson[MVP]
>
>
>
|