Results 1 to 3 of 3

Thread: Receiving Data From a Form

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2006
    Posts
    89

    Resolved 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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width