[RESOLVED] Pass variable/values from form to datareport
What is the best method of passing variable values from a form to a datareport?
Using a Public strDateRange value on a form, and
Code:
DataReport1.Sections("Section4").Controls("lblDateRange").Caption = strDateRange
for the report, displays a blank label.
Re: Pass variable/values from form to datareport
Resolved
Placed public variable in a module:
Code:
Public strDateRange as String
' In print report command
strDateRange = txtBegindate.Text & " to " & txtEnddate.Text
Then original datareport section code.