B
Bruce
This seems as if it should work, but it doesn't. I have a
report based on a parameter query. The parameters are a
person's name and a date range. I made a form (frmSelect)
with a combo box [cboName] to select the name. In the
query, in the EmployeeID field, I put [Forms]![frmSelect]!
[cboName]. (The combo box's bound column is EmployeeID,
though the visible column is the name). I placed a
command button on frmSelect to open the report.
The other parameter is the SessionDate field, using
Between And. When I selected the name as just described,
then clicked the button to open the report, I was prompted
for Start Date and End Date. It worked.
Next I added text boxes (txtStartDate and txtEndDate) to
frmSelect. In the Query, I made the parameter Between
[Forms]![frmSelect]![txtStartDate] And [Forms]![frmSelect]!
[txtEndDate]. However, I am still prompted for the Start
Date and End Date, even after filling in the text boxes.
It doesn't seem to make any difference what date format I
use in the table that is the query's source, but in case
it matters the date format in the table is mmm d", "yyyy.
Even when I changed the table field to short date and made
the format of txtStartDate and txtEndDate short date the
same thing happened. Any ideas as to what I have
overlooked?
report based on a parameter query. The parameters are a
person's name and a date range. I made a form (frmSelect)
with a combo box [cboName] to select the name. In the
query, in the EmployeeID field, I put [Forms]![frmSelect]!
[cboName]. (The combo box's bound column is EmployeeID,
though the visible column is the name). I placed a
command button on frmSelect to open the report.
The other parameter is the SessionDate field, using
Between And. When I selected the name as just described,
then clicked the button to open the report, I was prompted
for Start Date and End Date. It worked.
Next I added text boxes (txtStartDate and txtEndDate) to
frmSelect. In the Query, I made the parameter Between
[Forms]![frmSelect]![txtStartDate] And [Forms]![frmSelect]!
[txtEndDate]. However, I am still prompted for the Start
Date and End Date, even after filling in the text boxes.
It doesn't seem to make any difference what date format I
use in the table that is the query's source, but in case
it matters the date format in the table is mmm d", "yyyy.
Even when I changed the table field to short date and made
the format of txtStartDate and txtEndDate short date the
same thing happened. Any ideas as to what I have
overlooked?