|
-
Nov 25th, 2007, 07:00 AM
#1
Thread Starter
Lively Member
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.
Last edited by imstillalive; Nov 26th, 2007 at 12:11 AM.
-
Nov 25th, 2007, 07:25 PM
#2
Hyperactive Member
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.
-
Nov 26th, 2007, 12:10 AM
#3
Thread Starter
Lively Member
[Resolved] Receiving Data From a Form
Worked.....
thank u very much......
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|