473,385 Members | 1,292 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

How to solve Microsoft VBScript runtime (0x800A000D)Type mismatch error

I am experiencing a VBScript runtime error.
The error message is: "(0x800A000D)Type mismatch error"

Here is my code:
Expand|Select|Wrap|Line Numbers
  1. <% 
  2.    dim temp
  3.    temp=session("items")
  4.    session("count")=session("count")+1
  5.    redim  preserve items(session("count"))
  6.  
  7.   response.write items(session("count"))
  8.     for i=0 to session("count")-1
  9.       items(i)=temp(i)
  10.      next
  11.  
  12.     items(session("count"))=request.form("impo")
  13.     session("items")=items
  14.  
  15. cstring="DRIVER={Microsoft Access Driver (*.mdb)}; DBQ="&Server.Mappath("../database/base.mdb")
  16. set conn = Server.CreateObject("ADODB.connection")
  17. set rs = Server.CreateObject("ADODB.recordset")
  18. conn.open cstring
  19.  
  20. %>
  21.  
  22. <html>
  23.    <body bgcolor=#E1E1FF >
  24. <table border=0 width=100%>
  25.    <tr><td align=center><font color=#FF0000><b>PRISCRIPTION LIST</b></font>
  26.    </table>
  27.    <center>
  28.    <table border=0 width='60%'> 
  29.    <tr><td width='30%' align=center><font color=darkblue><B>MEDICINE NAME</B></FONT></td>
  30.    <td width='30%' align=center><font color=darkblue><B>PRICE Rs</font></td>
  31.  
  32. <%
  33.   for i=0 to session("count")
  34.    sql= "select * from stores where mid ='"& items(i) &"'"
  35.    rs.open sql,conn,1,3 
  36.   if not rs.eof then
  37.        response.write "<tr><td width='30%' align=center>"
  38.       response.write rs("mname")
  39.       response.write "</td><td width='30%' align=center>"&rs("price")&"</td></tr>"
  40.     end if
  41.     rs.close
  42.     next 
  43.   response.write "</table></center>"
  44.  %>
  45.  
  46. <br>
  47. <div align="center">
  48.   <center>
  49. <table border=0 width='680' height="1">
  50. <tr><td align="right" height=1 width="345" valign="baseline">
  51. <form action=billing.asp method=post target=_top>
  52. <input type=submit value="Accept"></form>
  53. </td>
  54.   <td align="center" height=1 width="93" valign="baseline">
  55. <form action=maintain.asp method=post>
  56. <input type=hidden value="cancel" name="flg">
  57. <input type=submit value="Cancel"></form></td>
  58.   <td align="center" height=1 width="239" valign="baseline">
  59.   </td>
  60. </tr>
  61. </table></center>
  62. </div>
  63.    <table border="0" width="100%">
  64.      <tr>
  65.        <td width="100%">
  66.        <p align="center"><font color="#FF0000"><b>HIT CANCEL TO DELETE YOUR LIST</b></font></td>
  67.      </tr>
  68.    </table>

Please help me to resolve this problem.

Thank you.
Mar 8 '11 #1
1 3972
Rabbit
12,516 Expert Mod 8TB
You have to tell us which line the error is on. The only thing I can tell you right now is that at some point, a function is expecting one variable type but you're giving it the wrong type.
Mar 8 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Arun Wadhawan | last post by:
Hello MY SQL Server is causing me this problem : Microsoft VBScript runtime error '800a000d' Type mismatch: 'ident' >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> I am getting from...
4
by: leslie_tighe | last post by:
Hello, I have a method on a com+ object that is returning an array of objects. I know the array is popluated as calls to check the ubound and lbound show valid values. However, any calls to...
1
by: MovnOn | last post by:
I'm writing a program that uses a COM object. If I were writing this code in VB6, the signature of the method of the COM object I need to use would be: saveMemo (Collection) The method takes a...
3
by: Snow | last post by:
Hello: I have Error Type: Microsoft VBScript runtime (0x800A000D) Type mismatch: '' The error happened at this line: if session("systemIdCount" & arrSystems(iLoop)) 0 The code like this:
3
by: easter | last post by:
I have inherited an ASP site and am new to ASP. Part of the site allows the client to update event information about their centre. When they try to add a new event, the following error occurs: ...
1
by: monika | last post by:
Hello: I have Error Type: Microsoft VBScript runtime (0x800A000D) Type mismatch: '' /OnlineLIB/BNosearch1.asp, line 32 The error happened at this line:bookno = chr(bookno) The code like...
8
by: RICHARD BROMBERG | last post by:
Can anyone tell me why I am getting the following VBScript runtime error Microsoft VBScript runtime error '800a000d' Type mismatch: 'fVALIDATEEMAIL' /JAVASCRIPT/VALIDATEEMAIL.asp, line 31 ...
1
by: FOREST GOLDEN | last post by:
i'M want to select multiple choice by using checkbox, but it come out the above mistake, plz help me solve it, thankx....... my ItemCode is using text eg:cg001 <%@ Language=VBScript %> <HTML>...
0
by: munkee | last post by:
Hi again, I am using the following code to open up a new window within my data access page: Dim vServerfilter Dim vLocation vLocation = "CorrectiveAction.htm?serverfilter=" vServerfilter =...
7
by: Jimgunkel | last post by:
I'm getting an error message: Technical Information (for support personnel) Error Type: Microsoft VBScript runtime (0x800A000D) Type mismatch...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.