LongFeiFengWu
Technical User
This is the script:
<!--#Include file="../../Includes/OpenDBConnections.asp" -->
<!--#Include file="../../Includes/UserInfo.asp" -->
<%
Jurisdiction = request.form("Jurisdiction"
myNow = formatdatetime (DateAdd("h",1,Now),3)
SQL = "SELECT count(*) as Num FROM unitDetails "
SQL = SQL & "WHERE ID=" & request.form("Work"
objrec.open SQL,objcon,3,3
NumberOfRecords = objrec("Num"
objrec.close
SQL = "SELECT * FROM unitDetails "
SQL = SQL & "WHERE ID=" & request.form("Work"
If NumberOfRecords > 1 then SQL = SQL & "AND Jurisdiction='" & Jurisdiction & "'"
objrec.open SQL,objcon,3,3
units = objrec("units"
Type1 = objrec("Type1"
Type2 = objrec("Type2"
objrec.close
objrec.open "orderTracking",objcon,3,3
objrec.addnew
objrec("Date"
= Date
objrec("Time"
= myNow
objrec("RepTPX"
= TPX
objrec("SupTPX"
= SupTPX
objrec("Type1"
= Type1
objrec("Type2"
= Type2
objrec("Units"
= Units
objrec("TrackingNumber"
= request.form("TrackingNumber"
objrec("TelephoneNumber"
= request.form("TelephoneNumber"
objrec("Jurisdiction"
= Jurisdiction
objrec("Sale"
= request.form("Sale"
Objrec.update
%>
<script language="VBScript">
msgbox "Your entry has been saved."
location.href = "toolmidtop.asp"
</script>
This is the error:
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
[Microsoft][ODBC SQL Server Driver][SQL Server]The request for procedure 'orderTracking' failed because 'orderTracking' is a table object.
/interactive/ecomm2/JobAids/Orders/toolmidtop_save.asp, line 29
Have been going 'round and 'round with this thing and can't find a reason why I would be getting that error. Any help will be greatly appreciated.
"If nothing within you stays rigid, outward things will disclose themselves. Moving, be like water. Still, be like a mirror. Respond like an echo." ~ Bruce Lee
<!--#Include file="../../Includes/OpenDBConnections.asp" -->
<!--#Include file="../../Includes/UserInfo.asp" -->
<%
Jurisdiction = request.form("Jurisdiction"
myNow = formatdatetime (DateAdd("h",1,Now),3)
SQL = "SELECT count(*) as Num FROM unitDetails "
SQL = SQL & "WHERE ID=" & request.form("Work"
objrec.open SQL,objcon,3,3
NumberOfRecords = objrec("Num"
objrec.close
SQL = "SELECT * FROM unitDetails "
SQL = SQL & "WHERE ID=" & request.form("Work"
If NumberOfRecords > 1 then SQL = SQL & "AND Jurisdiction='" & Jurisdiction & "'"
objrec.open SQL,objcon,3,3
units = objrec("units"
Type1 = objrec("Type1"
Type2 = objrec("Type2"
objrec.close
objrec.open "orderTracking",objcon,3,3
objrec.addnew
objrec("Date"
objrec("Time"
objrec("RepTPX"
objrec("SupTPX"
objrec("Type1"
objrec("Type2"
objrec("Units"
objrec("TrackingNumber"
objrec("TelephoneNumber"
objrec("Jurisdiction"
objrec("Sale"
Objrec.update
%>
<script language="VBScript">
msgbox "Your entry has been saved."
location.href = "toolmidtop.asp"
</script>
This is the error:
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
[Microsoft][ODBC SQL Server Driver][SQL Server]The request for procedure 'orderTracking' failed because 'orderTracking' is a table object.
/interactive/ecomm2/JobAids/Orders/toolmidtop_save.asp, line 29
Have been going 'round and 'round with this thing and can't find a reason why I would be getting that error. Any help will be greatly appreciated.
"If nothing within you stays rigid, outward things will disclose themselves. Moving, be like water. Still, be like a mirror. Respond like an echo." ~ Bruce Lee