How to assign value to controls on a Report

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top