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