473,779 Members | 2,035 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

2 New Member
I am experiencing a VBScript runtime error.
The error message is: "(0x800A000D)Typ e 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 4049
Rabbit
12,516 Recognized Expert Moderator MVP
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
4439
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 the table datingnew the value of the ident field.
4
10637
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 get the value of a cell in the array results in a type mismatch error.
1
4618
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 collection as the parameter. I did a tblimp (I get the same results if I add the COM object as a reference) on the COM object and when I use this in .NET, the same method has a signature of: saveMemo (Object) and the Object is passed ByRef.
3
30915
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
8163
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: Microsoft VBScript runtime error '800a000d' Type mismatch: 'incoming_date' includes/common_functions.asp, line 113 but I can't figure out where to make the correction. The code that contains the error is below. Line 113 is :...
1
4071
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 this:
8
5908
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 Here is the code snippet that calls the fVALIDATEEMAIL function. Here is Line 31 answer=fVALIDATEEMAIL("ddd@sss.com") . The complete snippet is shown below
1
3255
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> <HEAD> <META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0"> </HEAD> <title>Multiple checkbox select sample</title> <BODY>
0
1264
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 = chr(34) & "CorrectiveID=" & MSODSC.CurrentSection.HTMLContainer.children("NCC_ID").value & chr(34) vLocation = vLocation & vServerfilter window.open(vLocation)
7
5048
by: Jimgunkel | last post by:
I'm getting an error message: Technical Information (for support personnel) Error Type: Microsoft VBScript runtime (0x800A000D) Type mismatch /paneldatatest/indiana/fdp/updatefibercomments.asp, line 61
0
9471
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10302
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8958
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7478
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6723
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5372
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5501
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4036
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3631
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.