I have an update record that brings me the following message:
Quote:
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E07)
[Microsoft][ODBC Microsoft Access Driver] Data type mismatch in criteria expression.
/gangstermatch/go.asp, line 38
|
I get this error a lot. I think its due to the update column being numerical. I need a work around or something.
Quote:
<%
' this updates the amount of credits the user has
' this sets the new amount of credits
Dim newcred
newcred = ((credits.Fields.Item("credits").Value) + 1)
' this is the update command line
sql = "UPDATE users SET credits = '5' WHERE ID = '" + Request.QueryString("ID") + "'"
' execute the update
Dim MM_editCmd
Dim MM_editConnection
MM_editConnection = MM_gangstermatch_STRING
Set MM_editCmd = Server.CreateObject("ADODB.Command")
MM_editCmd.ActiveConnection = MM_editConnection
MM_editCmd.CommandText = sql
MM_editCmd.Execute
MM_editCmd.ActiveConnection.Close
' ends updating a users credits
%>
|
Thanks for helping
|