T
tshad
I have a statement:
if not (emailReader("ByCity") is DBNull.Value) and
emailReader("ByCity") <> "" then
that gives me an error if the value is actually a Null. The error is:
Operator is not valid for type 'DBNull' and string "".
This works fine for all other values including "".
I don't understand what it is complaining about. This is a varChar field.
What is the problem and how do I test this?
The value is going to set a dropdownlist.
Thanks,
Tom
if not (emailReader("ByCity") is DBNull.Value) and
emailReader("ByCity") <> "" then
that gives me an error if the value is actually a Null. The error is:
Operator is not valid for type 'DBNull' and string "".
This works fine for all other values including "".
I don't understand what it is complaining about. This is a varChar field.
What is the problem and how do I test this?
The value is going to set a dropdownlist.
Thanks,
Tom