telexpress
IS-IT--Management
I am having this problem:
Error Type:
Microsoft VBScript runtime (0x800A000D)
Type mismatch
/test/aspTest2.asp, line 42
The code:
Error Type:
Microsoft VBScript runtime (0x800A000D)
Type mismatch
/test/aspTest2.asp, line 42
The code:
Code:
<%
Dim objConn
Set objConn = server.CreateObject("ADODB.Connection")
objConn.ConnectionString = "DSN=accweb"
objConn.Open
ICITEMsql = "Select ICITEM.*, ICILOC.* from ICITEM, ICILOC WHERE ICITEM.ITEMNO = ICILOC.ITEMNO AND (ICILOC.QTYONHAND + ICILOC.QTYONORDER - ICILOC.QTYSALORDR) > 0"
set rstemp=objConn.Execute(ICITEMsql)
%>
<table width="526" border="1">
<tr>
<td width="66" nowrap>
<div align="center"><strong>ITEM NUMBER</strong></div></td>
<td width="224" nowrap>
<div align="center"><strong>DESCRIPTION</strong></div></td>
<td width="111" nowrap>
<div align="center"><strong>HECI/CLEI</strong></div></td>
<td width="28" nowrap>
<div align="center"><strong>MANUFACTURER</strong></div></td>
<td width="28" nowrap>
<div align="center"><strong>CATEGORY</strong></div></td>
<td width="29" nowrap>
<div align="center"><strong>TOTAL QTY</strong></div></td>
</tr>
<%DO UNTIL rstemp.eof %>
<tr>
<td valign="top"><%=rstemp("ITEMNO")%></td>
<td valign="top"><%=rstemp("DESC")%></td>
<td valign="top"><%=rstemp("OPTFLD6")%></td>
<td valign="top"><%=rstemp("OPTFLD3")%></td>
<td valign="top"><%=rstemp("CATEGORY")%></td>
<td valign="top">
<********************* Problem Starts Here*********************>
<%
totalquantity = rstemp("QTYONHAND") + rstemp("QTYONORDER") -rstemp("QTYSALORDR")
response.Write(totalquantity)
%>
<******************************************************>
</td>
</tr>
<%
rstemp.movenext
LOOP
%>
</table>
<%
rstemp.close
set rstemp=nothing
objConn.Close
set objConn=nothing
%>