Results 1 to 2 of 2

Thread: Problem in Data Report

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2002
    Posts
    1

    Problem in Data Report

    I am facing some problem in Displaying Data in dataReports:

    i want to pass parameters from form to the data report query.

    normally our query is select * from table_name

    but ,
    i want to pass query like

    select * from table_name where condition1 and condtion2 etc....


    now in condition1 and condition2 i want to pass some parameters or variables through vb form to report.

    how do i ?
    pls, explain with example and vb code?

  2. #2
    Junior Member
    Join Date
    Oct 2002
    Location
    SE London
    Posts
    22
    you will have to use an active data source on your report then from vb set the datasource of the report like

    rpt.database.setdatasource = rst
    as long as the recordset you are passing has the same structure as the active datasource in your report it will work

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