Hey guys
I am not really sure why this isn't working. I am running through my dataset and on a couple of values I put the isdbNull() check. When I do this however, I am getting the following erorr which is rather confusing.
Run-time exception thrown : System.Data.StrongTypingException - Cannot get value because it is DBNull.
If I simply try to access that value with no check then I get this error.
<error: an exception of type: {System.Data.StrongTypingException} occurred>
I ran the select statment through Query Analyzer and got a value of NULL in the problem field. It was my understanding that isDbNull was supposed to check for that value but it doesn't seem to be working much.
<joking>
I feel like I am falling from the pedistal that some of you have put me on (IZY)
</joking>
But your help/ideas/life experiences are appreciated.
That'l do donkey, that'l do
Mark
If you are unsure of forum etiquette check here faq796-2540
I am not really sure why this isn't working. I am running through my dataset and on a couple of values I put the isdbNull() check. When I do this however, I am getting the following erorr which is rather confusing.
Run-time exception thrown : System.Data.StrongTypingException - Cannot get value because it is DBNull.
If I simply try to access that value with no check then I get this error.
<error: an exception of type: {System.Data.StrongTypingException} occurred>
I ran the select statment through Query Analyzer and got a value of NULL in the problem field. It was my understanding that isDbNull was supposed to check for that value but it doesn't seem to be working much.
<joking>
I feel like I am falling from the pedistal that some of you have put me on (IZY)
</joking>
But your help/ideas/life experiences are appreciated.
That'l do donkey, that'l do
Mark
If you are unsure of forum etiquette check here faq796-2540