ahbenshaut
Well-known member
Greetings All!
I have a SQL database and I am creating a VB.Net front end. My question is: In the database, if a field does not have any data the value is <NULL>. In the application, I want to be able to assign a Null value to several datatypes. I could use an empty space as a value (ie. dim str as string="") but then not only do I need to trap for <Null> values, I would also need to trap for empty values.
Is it possible to assign variables the value of Null?
I have a SQL database and I am creating a VB.Net front end. My question is: In the database, if a field does not have any data the value is <NULL>. In the application, I want to be able to assign a Null value to several datatypes. I could use an empty space as a value (ie. dim str as string="") but then not only do I need to trap for <Null> values, I would also need to trap for empty values.
Is it possible to assign variables the value of Null?