well, i wouldn't use parameters in my query, if i needed the date values
available to the report format. if you're not familiar with VBA code,
probably the easiest way to do it is:
open the report from a form. add two unbound textbox controls to the form,
i'll call them txtDateFrom and txtDateTo. you can add a command button to
the form, to run the "open report" code, as
If Not IsNull(Me!txtDateFrom) And _
Not IsNull(Me!txtDateTo) Then
DoCmd.OpenReport "ReportName"
Else
MsgBox "Enter both a From date and a To date."
End If
in the query, replace the criteria parameters with the following criteria,
as
Between Forms!FormName!txtDateFrom And Forms!FormName!txtDateTo
in the Parameters dialog, change the parameter values to
Forms!FormName!txtDateFrom and Forms!FormName!txtDateTo.
in the report design view, add an unbound textbox control to the report
Header section, and set the ControlSource property to
=Format(Forms!FormName!txtDateFrom, "m\/d\/yyyy") & " - " &
Format(Forms!FormName!txtDateTo, "m\/d\/yyyy")
if you enter, for instance, 01/01/06 and 01/25/06 in the form controls, the
unbound textbox in the report header will display as
1/1/2006 - 1/25/2006
change the format of the dates, and the "connector", to whatever suits you.
there are other ways to set this up, without using textbox controls on a
form. but instead you have to write code to handle whatever the user enters
in "pop up" input boxes for the dates - such as invalid dates, values that
aren't dates at all, blank values, etc. it's a lot easier to use a form with
textbox controls, where you can use input masks and validation rules to make
sure the user enters appropriate values, without doing any coding at all to
handle that issue.
hth