Results 1 to 2 of 2

Thread: Controls in DataReport doesnot show the values

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2008
    Posts
    35

    Angry Controls in DataReport doesnot show the values

    Dear Experts,

    When i try to send the values from my database to the controls in the datareport ReportHeader Section, it doesnot show anything though the data has been passed.

    My code is:
    Code:
    Dim RPay As New ADODb.Recordset
    If DataEnvi.Connection1.State = 1 Then
    DataEnvi.Connection1.Close
    End If
    DataEnvi.Connection1.Open
    
    DataEnvi.rpt
    rpt.Refresh
    Set RPay = Con.Execute("select * from company")
    
    
    rpt.Sections("ReportHeader").Controls("label1").Caption = RPay("companyname")
    Debug.Print rpt.Sections("ReportHeader").Controls("label1").Caption
    rpt.Sections("ReportHeader").Controls("Label2").Caption = RPay("addressline1") + "," + RPay("addressline2")
    
    
    rpt.Show
    Please Help with this....
    RAY

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Controls in DataReport doesnot show the values

    Moved To Reporting

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