Results 1 to 5 of 5

Thread: ADO and Datareport

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2007
    Posts
    82

    Question ADO and Datareport

    Hi everyone!

    A am developing a visual basic 6 application that uses many database types so... I can't create dataenvironment to create easy datareports....
    For the begining I use access database file....and I try to make miscellaneous reports and I really don't know how to build them...
    I have to create them at runtime....

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

    Re: ADO and Datareport

    You can use ADO recordset as report datasource.

    Code:
    'display Invoice Listing report
        With rptInvlisting
             ' Bind the Recordset to the Report
             Set .DataSource = rsR
             .DataMember = rsR.DataMember
             .Show vbModal
        End With
    rsR is ADO recordset

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Mar 2007
    Posts
    82

    Re: ADO and Datareport

    Thanks a lot.....but I also want to build them at startup....add controls that manage my data

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

    Re: ADO and Datareport

    Build what at startup? I thought you wanted to print a Datareport.

  5. #5
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758

    Re: ADO and Datareport

    Do you mean add controls to the datareport at runtime? If yes, don't bother trying because you can't.

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