troubleshooting Question

Testing for a recordsets value being equal to nothing in ASP

Avatar of adm-computing
adm-computing asked on
11 Comments2 Solutions773 ViewsLast Modified:
Can someone tell me the best way of testing for a recordset's field's value being equal to 'nothing' (or null?) in ASP?

For example, I have an If statement that needs to test if a field's value is set to nothing. I would have thought it could be done the following way but it appears it cannot:

<% if (recordset.Fields.Item("myfield").Value) = ""  then %>
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 2 Answers and 11 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 11 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros