Results 1 to 6 of 6

Thread: Problem with DataReport and Mysql Database

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2007
    Posts
    82

    Problem with DataReport and Mysql Database

    Hy

    I am building an application that is using an mysql database and I am trying to build Datareports using ADO data control.
    My problem is that in the reports it puts me only the first record from the database for "Number of records" times, so I can't see all the records I need.

    My code looks like this:


    With DR
    Set .DataSource = rs

    .Sections("section1").Controls.Item("Txt0").DataField = rs.Fields(0).Name
    .Sections("section1").Controls.Item("Txt1").DataField = rs.Fields(1).Name
    .Sections("section1").Controls.Item("Txt2").DataField = rs.Fields(2).Name
    .Refresh
    End with

    Waiting for your response.
    Thanks
    Last edited by Hack; Mar 19th, 2008 at 06:12 AM.

  2. #2
    PowerPoster
    Join Date
    Sep 2005
    Location
    Modesto, Ca.
    Posts
    5,515

    Re: Problem with DataReport and Mysql Database

    Need to see how "rs" is created and filled.

  3. #3
    PowerPoster
    Join Date
    Nov 2002
    Location
    Manila
    Posts
    7,629

    Re: Problem with DataReport and Mysql Database

    Are you sure your not using the report header or page header to display the records? Use the details section for the records.

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Mar 2007
    Posts
    82

    Re: Problem with DataReport and Mysql Database

    rs is the connection recordset and it works really good in any other case....but here I encouter this problem

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

    Re: Problem with DataReport and Mysql Database

    Moved to Reporting

  6. #6
    PowerPoster
    Join Date
    Sep 2005
    Location
    Modesto, Ca.
    Posts
    5,515

    Re: Problem with DataReport and Mysql Database

    As Leinad31 suggested, are you sure "section1" is the report detail section name.

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