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...
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'"