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

Microsoft VBScript runtime error - Type mismatch

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:
Expand|Select|Wrap|Line Numbers
  1.  <% If (rst_rs("Amount"))="" then %> 
  2. Sorry the amount is 0
  3. <%else%>
  4. Amount : <%=rst_rs("Amount")%>
  5. <% end if%>
  6.  
And I found that the value nullable, and I have check that the value is NULL in the sql server, so I change my script to check if it is null value:

Expand|Select|Wrap|Line Numbers
  1.  <% If isnull(rst_rs("Amount"))=true then %> 
  2. Sorry the amount is 0
  3. <%else%>
  4. Amount : <%=rst_rs("Amount")%>
  5. <% end if%>
  6.  
However, I still got the Type mismatch error, any idea??
Jul 31 '07 #1
1 3024
omerbutt
638 512MB
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%>

And I found that the value nullable, and I have check that the value is NULL in the sql server, so I change my script to check if it is null value:

<% If isnull(rst_rs("Amount"))=true then %>
Sorry the amount is 0
<%else%>
Amount : <%=rst_rs("Amount")%>
<% end if%>

However, I still got the Type mismatch error, any idea??
can you specify at which line
May 3 '08 #2

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

Similar topics

3
by: jimbly | last post by:
Hello, can someone help! I am getting an error: Microsoft VBScript runtime error '800a000d Type mismatch /bps/srch-detail.asp, line 137 I didn't write this asp - I know very little about...
2
by: Jozsef Bekes | last post by:
Hello Everyone, I am trying to access a C# class from vbscript. All is file, except for the case when I want to use optional parameters or function overloading. As I found out, optional...
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: mudasserrafiq | last post by:
I am using following asp file default.asp <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <META http-equiv=Content-Type content="text/html; charset=windows-1252"> <META content="0...
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>...
4
by: ghanson | last post by:
I have started to have problems with my code. On one server the code works fine and on another (which is the one I need to run the scrpt on) I get Microsoft VBScript runtime error '800a000d' ...
1
by: morrisqueto | last post by:
Hello, One of my websites just started sending a new rare error. The site has been working for almost 2 years without trouble, but today morning started giving away this error in all my views. ...
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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...
0
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,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...

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.