C
ChuckW
Hi,
I created a form called SelectDates that has two text
boxes and a command button that runs a report. The two
text boxes are called txtStartDate and txtEndDate. I
created a query that has the following in the criteria of
the date restrictor:
Between [Forms]![SelectDates]![txtStartDate] And [Forms]!
[SelectDates]![txtEndDate]
The report correctly runs a sales report with this date
restrictor. One problem I am having is that I would like
for the start date and end date to appear in the header
of my report so that if it is printed out, the start
dates and end dates will appear. I created a text box at
the top of my report with the following values in the
first box = [Forms]![SelectDates]![txtStartDate].
I then created a second box with the following values
[Forms]![SelectDates]![txtEndDate]. I am expecting for
the start date and end dates to appear on the report but
I am getting the #Name? error instead. Any idea what I
am doing wrong.
Thanks,
Chuck
I created a form called SelectDates that has two text
boxes and a command button that runs a report. The two
text boxes are called txtStartDate and txtEndDate. I
created a query that has the following in the criteria of
the date restrictor:
Between [Forms]![SelectDates]![txtStartDate] And [Forms]!
[SelectDates]![txtEndDate]
The report correctly runs a sales report with this date
restrictor. One problem I am having is that I would like
for the start date and end date to appear in the header
of my report so that if it is printed out, the start
dates and end dates will appear. I created a text box at
the top of my report with the following values in the
first box = [Forms]![SelectDates]![txtStartDate].
I then created a second box with the following values
[Forms]![SelectDates]![txtEndDate]. I am expecting for
the start date and end dates to appear on the report but
I am getting the #Name? error instead. Any idea what I
am doing wrong.
Thanks,
Chuck