Roger said:
The total is the result of an unbound calculated control on the report
based
on adding the result of several other bound controls on the report,
Naturally
the bound controls are based on the results of a query. I call this report
my
income report and it displays the results of both retail and service sales
plus tax, backbar usage and etc by employee/stylist for the dates intered
when the query is run. I dont need all this info to balance my cash
drawer. I
just want a way to place the total from the reports unbound calculated
control on the cash drawer form after the report is run. I don't need
employees to see what each other made etc..just a total for the day so
they
can balance the register for the day
Hope this helps explain what I need
No, not really. Remember that neither reports nor forms actually hold data;
only tables hold data. So while it would be technically possible to put
code in the report that snags the total when the report is run and sticks it
into a field in a record in a table, that would really not be the right way
to do it. It's bad idea to store a data value that can be calculated.
Instead, we need to determine what calculation, performed on what query, is
necessary to arrive at the result, and then set up a calculated control on
your form that uses a DLookup or DSum expression to perform the calculation.
A good starting point would be the SQL of the report's recordsource query,
and the controlsource and other relevant properties of the text box on the
report that displays the total. That will doubtless lead to further
questions, but it would be a start.