Hi
I have the following code which generates an error 'Data Type mismatch in criteria expression'
The purpose of the code is to write a value to a database at a specific row.
ViRi
I have the following code which generates an error 'Data Type mismatch in criteria expression'
The purpose of the code is to write a value to a database at a specific row.
VB.NET:
Dim IntSid As String
Dim Sid As String
Dim I As Integer
IntSid = Me.TTIn.Text
Sid = Me.SessionIDTextBox.Text
I = CInt(Val(Sid))
Dim loSQL = "UPDATE tblSession SET TTout = '" & _
IntSid & "' WHERE SessionId = '" & _
I & " ' "
ViRi