Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Exception occurred -
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Exception occurred -

 Post Reply Post Reply
Author
Greaser View Drop Down
Newbie
Newbie


Joined: 30 October 2002
Location: United States
Status: Offline
Points: 26
Post Options Post Options   Thanks (0) Thanks(0)   Quote Greaser Quote  Post ReplyReply Direct Link To This Post Topic: Exception occurred -
    Posted: 14 August 2003 at 9:56am
I think what I am trying to do is pretty simple.


<%
if rsPass("seconds") <> " " then
response.write "Sorry.  There is no test pass with this is. Please contact <a href=mailto:mail@somesome>"
end if
%>    

If rsPass is null then I want to display the message.  

Am I even close in my coding?

I get when using it.
 Error Type:
(0x80020009)
Exception occurred.
/lab/sql/pass.asp, line 192
Back to Top
MorningZ View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 May 2002
Location: United States
Status: Offline
Points: 1793
Post Options Post Options   Thanks (0) Thanks(0)   Quote MorningZ Quote  Post ReplyReply Direct Link To This Post Posted: 14 August 2003 at 10:32am
what code is at line 192?
Contribute to the working anarchy we fondly call the Internet
Back to Top
Greaser View Drop Down
Newbie
Newbie


Joined: 30 October 2002
Location: United States
Status: Offline
Points: 26
Post Options Post Options   Thanks (0) Thanks(0)   Quote Greaser Quote  Post ReplyReply Direct Link To This Post Posted: 14 August 2003 at 10:44am
if rsPass("seconds") <> " " then
Back to Top
pmormr View Drop Down
Senior Member
Senior Member


Joined: 06 January 2003
Location: United States
Status: Offline
Points: 1479
Post Options Post Options   Thanks (0) Thanks(0)   Quote pmormr Quote  Post ReplyReply Direct Link To This Post Posted: 14 August 2003 at 4:04pm

try replacing

if rsPass("seconds") <> " " then

with

if rsPass("seconds") = "" then

Back to Top
3BEPb View Drop Down
Groupie
Groupie


Joined: 07 August 2003
Location: United States
Status: Offline
Points: 81
Post Options Post Options   Thanks (0) Thanks(0)   Quote 3BEPb Quote  Post ReplyReply Direct Link To This Post Posted: 16 August 2003 at 9:37pm
pmormr, rsPass("seconds")<>"" doesn't mean Null AFAIK. That means just blank record, which is NOT NULL anyway.

Edited by 3BEPb
Back to Top
pmormr View Drop Down
Senior Member
Senior Member


Joined: 06 January 2003
Location: United States
Status: Offline
Points: 1479
Post Options Post Options   Thanks (0) Thanks(0)   Quote pmormr Quote  Post ReplyReply Direct Link To This Post Posted: 17 August 2003 at 3:43pm

i said try, and btw, that line should work. He used the wrong word to describe his situation, from what i picked up in that code, if there's nothing in seconds then he wants to display the message. Look at the blue text a little bit closer, notice that it sayes '=' not '<>'!

P.S. I know a good anger therapist!

Back to Top
3BEPb View Drop Down
Groupie
Groupie


Joined: 07 August 2003
Location: United States
Status: Offline
Points: 81
Post Options Post Options   Thanks (0) Thanks(0)   Quote 3BEPb Quote  Post ReplyReply Direct Link To This Post Posted: 17 August 2003 at 9:51pm

pmormr, lol :)

I prefer build, not destroy, so I never angry. If you think abt caps in "NOT NULL", sorry, but that's the way how I highlite values in code :))))

Back to Top
ljamal View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 16 April 2003
Status: Offline
Points: 888
Post Options Post Options   Thanks (0) Thanks(0)   Quote ljamal Quote  Post ReplyReply Direct Link To This Post Posted: 17 August 2003 at 10:26pm
The best way to detect null is the IsNull function, so try:

<%
if IsNull(rsPass("seconds")) then
response.write "Your Message"
end if
%>    

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.