Qbert
Active member
hello
i am getting an error when i am selecting from a table and there is a null value in the table.
Conversion from type 'DBNull' to type 'String' is not valid.
is there a way to prevent this? i tried this but i get errors with this.
thanks
i am getting an error when i am selecting from a table and there is a null value in the table.
Conversion from type 'DBNull' to type 'String' is not valid.
is there a way to prevent this? i tried this but i get errors with this.
VB.NET:
If (not dr.IsDBNull(4)) Then
ClientAddress2TextBox.Text = dr.Item(4)
End If
thanks