Receiving Data From a Form
Code:
Private Sub DataReport_Initialize()
Me.Sections("section4").Controls("lblDate1").Caption = Form12.DTPicker1.Value
Me.Sections("section4").Controls("lblDate2").Caption = Form12.DTPicker2.Value
End Sub
hi,
In the above code, i m taking the value of DTPicker1 and DTPicker2 in the datareport which is bounded to a recordset by Dataenvironment
My problem is when I click the command button of Form12 to show Data Report, the labels (lbldate1 and lbldate2) show correct value of DTPicker1 and DTPicker2 .... But if i close the datareport and again change the value of DTPicker1 and DTPicker2 and click the command button to show the report, the labels show same old value....
Hoping for a speedy reply?
Thank u.
Re: Receiving Data From a Form
Maybe setting the report to nothing? I am not really sure, but what can it hurt to try it.
[Resolved] Receiving Data From a Form
Worked.....
thank u very much......