I am getting this error
Microsoft OLE DB Provider for ODBC Drivers error '80040e07'
[Microsoft][ODBC Microsoft Access Driver] Data type mismatch in criteria expression.
/asp/masterlist.asp, line 53
line 53 code
<% If Request("update") <> "" Then %>
<%
set updatemulti = Server.CreateObject("ADODB.Command")
updatemulti.ActiveConnection = MM_cottonwooddrugs_STRING
updatemulti.CommandText = "UPDATE prescription_refill SET printed ='-1' WHERE printed ='0' "
updatemulti.CommandType = 1
updatemulti.CommandTimeout = 0
updatemulti.Prepared = true
updatemulti.Execute() This is line 53
%>
<% End If %>
The field this command was built for is Printed which is a yes/no True/False. Is the error because of the printed=-1 and 0? Is my command update using the wrong data for a yes/no field?
Thanks
Bob
Microsoft OLE DB Provider for ODBC Drivers error '80040e07'
[Microsoft][ODBC Microsoft Access Driver] Data type mismatch in criteria expression.
/asp/masterlist.asp, line 53
line 53 code
<% If Request("update") <> "" Then %>
<%
set updatemulti = Server.CreateObject("ADODB.Command")
updatemulti.ActiveConnection = MM_cottonwooddrugs_STRING
updatemulti.CommandText = "UPDATE prescription_refill SET printed ='-1' WHERE printed ='0' "
updatemulti.CommandType = 1
updatemulti.CommandTimeout = 0
updatemulti.Prepared = true
updatemulti.Execute() This is line 53
%>
<% End If %>
The field this command was built for is Printed which is a yes/no True/False. Is the error because of the printed=-1 and 0? Is my command update using the wrong data for a yes/no field?
Thanks
Bob