The user may display the report on the screen for some minutes before
printing. I have some time calculations for the detail records and total
by
group. If the last record of a group doesn't have a "closure" time, the
calcuation uses the now function (done in the query). The page footer
date/time is used to validate the calculation for these records; however
if
the user doesn't print it right away, there can be a big difference
between
the last detail record (and subTotal) calculation and the page footer
date/time.
In mid explanation, I just figured out my problem but I still need a
solution.........
My detail record calculation is updating when printing but my subTotal
calculation is not. The detail calc is a calculated field from the query.
The subTotal is an unbound control that uses a custom function. The
function
receives the value of a different bound, hidden calculated field from the
detail section. This hidden control is updating but my unbound control
isn't
updating on print. I've tried setting running total property, passing the
value by ref rather than val and adding a separate unbound control to sum
up
the hidden values and pass that to the function. Nothing is working.
Any
suggestions? Hopefully I am making sense.
Here is the orginal subTotal calculation:
=DaysHrs(Sum([TDur])) (TDur is total seconds)
Duane Hookom said:
Can you explain the difference between "when the report is printed" and
"exact moment the report is run"?
--
Duane Hookom
MS Access MVP
Is there a function that would show the time that a report was run?
Here's
what I mean....
I currently use the built-in "Date and Time" in the page footer. This
is
fine except it updates when the report is printed. I want to show &
print
the exact moment the report is run.
Thanks
LeAnn