>I have a report that is based on a query. The query is filled with
>information between two dates that are set as peramiters in the query. [Start
[quoted text clipped - 14 lines]
>calculation to
>End Sub
That code looks like it would work, but only if you have a
text box that refers to the parameters. However, since you
seem to want to put the calculations in a text box anyway,
there is no need to use any code to do it. Just set a text
box's expression to something like:
=DateDiff("d", [Start Date], [End Date])

Signature
Marsh
MVP [MS Access]