Results 1 to 3 of 3

Thread: Sql query in datareport

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2005
    Posts
    305

    Sql query in datareport

    I've a datareport that uses dataenviroment to fetch data
    the query i use is :

    Code:
    SELECT  * from testsdata,patient_ID as patientid, WHERE
        patientid = ?
    here testsdata id the table , patient_id is the parameter i want to use as the filter.
    But even when i supply the parameter using the code:
    Code:
    DataEnvironment1.Commands("report").Parameters(0).Value =txtPatientID
    the report doesnt filter the data.... whatz gng wrong , any suggestions

  2. #2
    PowerPoster dilettante's Avatar
    Join Date
    Feb 2006
    Posts
    24,487

    Re: Sql query in datareport

    Did you try calling the Refresh method on the Parameters collection first?

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

    Re: Sql query in datareport

    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