Inside SQL string I'm building a path to the image file named by EmployeeID #
***************************************
strSQL = "SELECT EmployeeID, " & _
"FirstName, LastName, " & _
"(FirstName + ' ' + LastName) As Name, " & _
"('Img\' + EmployeeID + '.jpg') As PhotoURL, " & _
"DateLastEval, DateActualEval, DateNextEval, DateLastMerit, DateActualMerit, DateNextMerit, NotesEval, NotesMerit " & _
"FROM Employees WHERE LastName LIKE '" & rblAlpha.SelectedItem.Text & "%'"
***************************************
SQL string is passed to GetDataSet function iside a Class
***************************************
Public Shared Function GetDataSet( _
ByVal SQLString As String, _
ByVal ConnectionString As String) As DataSet
Dim da As OleDbDataAdapter
Dim ds As DataSet
Try
' Create new DataAdapter
da = New OleDbDataAdapter( _
SQLString, ConnectionString)
' Fill DataSet from DataAdapter
ds = New DataSet()
da.Fill(ds)
Catch
Throw
End Try
Return ds
End Function
***************************************************
I need to convert EmployeeID to string to build a path but I'm not sure where and how.
Your help is very much appreciated.