Hi, all. I've created a SQLDataAdapter so that I could output the data on the forms with specified labels. I've binned the data on the text and tag at the properties. Below is my code:
Private Sub GetStudyDetails(ByVal studyid As Double)
Dim strQuery As String
strQuery = "SELECT ReasonForStudy, LabType, SystolicPressure, DiastolicPressure, HeartRateBPM, Status, EchoStudyType FROM Study_Rpt WHERE (StudyId = @Param2)"
SqlDataAdapter3.SelectCommand.CommandText = strQuery
SqlDataAdapter3.SelectCommand.Parameters.Add("@Param2", SqlDbType.Float).Value = studyid
DsStudy1.Clear()
SqlDataAdapter3.Fill(DsStudy1)
End Sub
After debugging the program, it shows an error msg:
An unhandled exception of type 'System.Data.SqlClient.SqlException' occurred in system.data.dll
Additional information: System error.
Could somebody help?
Private Sub GetStudyDetails(ByVal studyid As Double)
Dim strQuery As String
strQuery = "SELECT ReasonForStudy, LabType, SystolicPressure, DiastolicPressure, HeartRateBPM, Status, EchoStudyType FROM Study_Rpt WHERE (StudyId = @Param2)"
SqlDataAdapter3.SelectCommand.CommandText = strQuery
SqlDataAdapter3.SelectCommand.Parameters.Add("@Param2", SqlDbType.Float).Value = studyid
DsStudy1.Clear()
SqlDataAdapter3.Fill(DsStudy1)
End Sub
After debugging the program, it shows an error msg:
An unhandled exception of type 'System.Data.SqlClient.SqlException' occurred in system.data.dll
Additional information: System error.
Could somebody help?