473,378 Members | 1,498 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,378 software developers and data experts.

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

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 3228
jhardman
3,406 Expert 2GB
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
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
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...
1
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...
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: 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") ...
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: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.