How to assign value to controls on a Report

  • Thread starter Thread starter Ayo
  • Start date Start date
A

Ayo

I am trying to assign value on a txtbox control from a form to a txtbox
control on a report.
Form txtbox control:txtBeginDateRange
Report txtbox control:txtStartDate

reportName = "Report by DR and Vendor"

I am have a problem with this line of code
Reports![reportName]!txtStartDate = Me.txtBeginDateRange

DoCmd.OpenReport reportName, acViewPreview

Any help will be appreciated. Thank you.
Ayo.
 
Back
Top