I have a form, frmReports, with two fields: txtReportBegDate and txtReportEndDate. I use this to pass the date parameters to the query that is the record source for my report. The query works fine so I'm sure the parameters are being passed.
However, I want to use those parameters as part of the title on my report. I've tried using a text box with the value ="Transactions Entered Between " & forms!frmReports.txtReportBegDate & " And " & forms!frmReports.txtReportEndDate. I've also tried a text box with just the control name. I get one of two results: either #Name?, or an error that says 'Can't find the field forms!frmReports.txtReportEndDate referred to in your expression'.
I've done this before but it's been years ago. Can anyone point out what I'm doing wrong?
Thanks!
However, I want to use those parameters as part of the title on my report. I've tried using a text box with the value ="Transactions Entered Between " & forms!frmReports.txtReportBegDate & " And " & forms!frmReports.txtReportEndDate. I've also tried a text box with just the control name. I get one of two results: either #Name?, or an error that says 'Can't find the field forms!frmReports.txtReportEndDate referred to in your expression'.
I've done this before but it's been years ago. Can anyone point out what I'm doing wrong?
Thanks!