I still have been unable to overcome this obstacle and would again like to humbly request your expertise. Let me give you the details of everything and hopefully that will assist you.
VB 6.0 (front end) A2K (back end)
Data Types
gintUser Integer Data Type Number/Field Size Integer
gintCaseNumber Integer Data Type AutoNumber/Field Size Long Integer
SQL string strSQL = _
"UPDATE tblData " & _
"SET tblData.blnTrained = True, tblData.intTrainer = ' & gintUser & ', " & _
"tblData.dtmTrained = Date() " & _
"WHERE tblData.intCase= ' & gintCaseNumber & ';"
ADO Command cxn.Execute strSQL, , adCmdText + adExecuteNoRecords
Response Run Time Error '-2147217913 (80040e07)'
Data Type Mismatch in criteria expression
I know the error denotes that I am trying to mix data types but for the life of me I am unable to locate where that is happening. Everything that I do to assign these variables deals with them as Integers and not strings. There is one place that I use this on the field that becomes the variable ... Format(tblData.intCase,'00000') AS intCase ... but I do not see where that would have an bearing on the data type.
I am at the end of my rope here and really need your assistance to overcome this. If you need any further details please do not hesitate to ask and thank you....
Kenny Alligood