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

Home Posts Topics Members FAQ

Microsoft VBScript runtime (0x800A000D) Type mismatch: '[string: "MI001"]'

1 New Member
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
Expand|Select|Wrap|Line Numbers
  1. <%@ Language=VBScript %>
  2. <HTML>
  3. <HEAD>
  4. <META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
  5. </HEAD>
  6. <title>Multiple checkbox select sample</title>
  7. <BODY>
  8. <%
  9. dim conn,rs
  10. set conn=server.CreateObject("ADODB.Connection")
  11. conn.Open("Driver={Microsoft Access Driver (*.mdb)}; DBQ= C:\Inetpub\wwwroot\Projects\DATA\MainFile.mdb")
  12. set rs = createobject("ADODB.Recordset")        
  13. set rs=conn.execute("select ItemCode, Code, Name from ItemFile order by Code")
  14. %>
  15.  
  16. <p>
  17. List of all parents in database, those that are enabled are checked.
  18. </p>
  19. <form name=frmTest action="MultipleCheckboxesTarget.asp" method=POST>
  20. <%
  21. iCount = 0
  22. while not rs.EOF
  23.     lItemCode = cstr(rs("ItemCode"))
  24.     iCount = iCount + 1%>
  25. <input type=CHECKBOX name=chkParent<%=iCount%> value="<%=cstr(rs("ItemCode"))%>"<%if cstr(rs("ItemCode")) then Response.Write " CHECKED" end if%>><%=rs("Name")%><br>
  26. <%    rs.MoveNext
  27. wend
  28. rs.Close
  29. set rs.ActiveConnection = nothing
  30. set rs = nothing
  31. %>
  32. <input type=HIDDEN name=txtCount value="<%=iCount%>">
  33. <p><input type=SUBMIT value="Select"></p>
  34. </form>
  35. </BODY>
  36. </HTML>
Aug 16 '07 #1
1 3255
jhardman
3,406 Recognized Expert Specialist
is line 23 causing the error or line 25? try printing out the itemCode to show what it is in the db:
Expand|Select|Wrap|Line Numbers
  1. response.write "<!-- itemCode: " &rs("ItemCode") & " -->" & vbNewLine
Jared
Aug 17 '07 #2

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

Similar topics

10
25893
by: Mark Sargent | last post by:
Hi All, why am I getting this error..? Cheers. Mark Sargent. Error Type: Microsoft VBScript runtime (0x800A000D) Type mismatch: ''
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:
1
3057
by: makinha | last post by:
Hello, I got a type mismatch error on my script when compare the null value collect from the sql server. From the beginning, I code as below: <% If (rst_rs("Amount"))="" then %> Sorry the amount is 0 <%else%> Amount : <%=rst_rs("Amount")%> <% end if%>
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
1
4049
by: sharbha | last post by:
I am experiencing a VBScript runtime error. The error message is: "(0x800A000D)Type mismatch error" Here is my code: <% dim temp temp=session("items") session("count")=session("count")+1 redim preserve items(session("count"))
0
9632
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
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
10136
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10071
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
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
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...
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
3
2867
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.