M
Martina
The code below is what I am getting this error message from, can anyone see
why?
<WebMethod()> Public Function PickOnePatientFiles(ByVal name As String) As
DataSet
Dim selstring As String
Dim empid As Int32 = 0
Dim OutputList As New DataSet()
selstring = "SELECT CentralPatientID, Name, MedicareNumber, OtherID FROM
CentralPatientIndex WHERE Name = """ + name + """"
OleDbSelectCommand1.CommandText = selstring
OleDbDataAdapter1.Fill(OutputList, "PatientIndex")
empid =
CType(OutputList.Tables("CentralPatientIndex").Rows(0).Item("OtherID"),
Int32)
selstring = "SELECT * FROM Imaging Request WHERE OtherID = " + CStr(empid)
OleDbSelectCommand1.CommandText = selstring
OleDbDataAdapter1.Fill(OutputList, "Maitland_XRay")
PickOnePatientFiles = OutputList
End Function
why?
<WebMethod()> Public Function PickOnePatientFiles(ByVal name As String) As
DataSet
Dim selstring As String
Dim empid As Int32 = 0
Dim OutputList As New DataSet()
selstring = "SELECT CentralPatientID, Name, MedicareNumber, OtherID FROM
CentralPatientIndex WHERE Name = """ + name + """"
OleDbSelectCommand1.CommandText = selstring
OleDbDataAdapter1.Fill(OutputList, "PatientIndex")
empid =
CType(OutputList.Tables("CentralPatientIndex").Rows(0).Item("OtherID"),
Int32)
selstring = "SELECT * FROM Imaging Request WHERE OtherID = " + CStr(empid)
OleDbSelectCommand1.CommandText = selstring
OleDbDataAdapter1.Fill(OutputList, "Maitland_XRay")
PickOnePatientFiles = OutputList
End Function