OT: ASP Classic Datasets And Null Columns

J

Jumping Matt Flash

Apologies that this is an ASP 2.0 Question instead of .NET but i couldn't
find a more appropriate news group.

I'm trying to deal with values in my dataset which are set to null.
Using VBScript, i've tried the following but I get an exception thrown:

72: If objRecordSet("AccountNumber") <> ""
73: Then Response.Write "" & objRecordSet("AccountNumber") & ""
74: Else Response.Write " "
75: End If

Error Type:
(0x80020009)
Exception occurred.
/hewden/XXXX.asp, line 72

Or if i try the following an exception is also thrown
72: If objRecordSet("AccountNumber") Is Nothing
73: Then Response.Write " "
74: Else Response.Write "" & objRecordSet("AccountNumber") & ""
75: End If

Error Type:
(0x80020009)
Exception occurred.
/hewden/XXXX.asp, line 74

Any ideas?

TIA
Matt
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top