PDA

Click to See Complete Forum and Search --> : [RESOLVED] Pass variable/values from form to datareport


Enrique_
Jun 26th, 2009, 10:03 PM
What is the best method of passing variable values from a form to a datareport?

Using a Public strDateRange value on a form, and

DataReport1.Sections("Section4").Controls("lblDateRange").Caption = strDateRange
for the report, displays a blank label.

Enrique_
Jun 27th, 2009, 09:13 AM
Resolved
Placed public variable in a module:
Public strDateRange as String
' In print report command
strDateRange = txtBegindate.Text & " to " & txtEnddate.Text

Then original datareport section code.