CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 1999
    Posts
    7

    Data Env. and Data Report in vb 6

    How can I change the Label Caption on the unbound labels in my Data Report in runtime?

    I have:

    DataReport1.Sections(Item_Gouping_Header).Controls.Item("Label1").Caption = ?

    I have: - deEnv, cnnCompl(conections to MS Access database) and command1(control group by Item)


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: Data Env. and Data Report in vb 6

    I have just created a Datareport with an unbound label in page heading like this and it works:

    DataReport1.Sections("section2").Controls.Item("label1").Caption = "hello,world"
    Dim rs as new ADODB.Recordset
    rs.Fields.Append "nonE", adBigInt
    rs.Open
    rs.AddNew "none", 1
    set DataReport1.DataSource = rs
    DataReport1.Show



    what's your error message or problem?



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

Featured