Results 1 to 2 of 2

Thread: Sql query problem....

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2005
    Posts
    305

    Sql query problem....

    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
    New Member
    Join Date
    May 2010
    Posts
    8

    Re: Sql query problem....

    try

    Code:
    DataEnvironment1.Report txtPatientID
    This works on my reports

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