Hi,
Since DBNull is a class name, you use the Value property of it to get an
instance, which in turn used to assign for null values.
"Wayne Wengert" <wa***************@wengert.com> wrote in message
news:eE**************@TK2MSFTNGP11.phx.gbl...
Herfried & Shiva;
Thanks. Why do they do that? Null is always confusing enough to deal with!
Wayne
"Wayne Wengert" <wa***************@wengert.com> wrote in message
news:eU**************@TK2MSFTNGP09.phx.gbl...
I am trying to set a field to Null using code such as:
dr("Contact2") = DBNull
But VB.NET won't accept that. I tried:
dr("Contact2") = Nothing
but that tells me to use DBNull
What is the correct syntax to accomplish this?
Wayne