Results 1 to 3 of 3

Thread: Sql Query

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 2002
    Location
    philippines
    Posts
    81

    Sql Query

    can anyone help me retrieve this...

    the field..

    patient id , datepn , diagnosis , progress notes

    from the table [progress notes]



    the field...

    name, maiden name, surname, age , sex


    from the table [ patient personal information]


    suppose i entered in the textbox is 2. i want to query my database to show only patient with patient id number 2.

    i'll be using this on my data report w/o data environment, im stucked... coz im having an error, and they told me that i must have a grouped recordset...


    Pls.. help.
    Attached Images Attached Images  
    DSN

  2. #2
    PowerPoster lintz's Avatar
    Join Date
    Mar 2003
    Location
    The 19th Hole
    Posts
    2,697
    Try this....

    Code:
    Dim ProgressNote As String
    Dim sSQL As String
    
    ProgressNote = Text1
    sSQL = "SELECT tablename.patient id AS ID, tablename.datepn AS Date, tablename.diagnosis AS Diag, tablename.progress notes AS Note from tablename WHERE tablename.progress notes = 'Progress Note'"
    Repeat the above for your 2nd query.

    HTH

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Dec 2002
    Location
    philippines
    Posts
    81

    Unhappy

    i tried that but im still having problem with my datareport...

    http://www.vbforums.com/showthread.p...hreadid=259972


    check that out...
    DSN

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