I want to check with VB.net whether a field in a SQL-table is NULL or not.
This code doesnot work:
If xxx = NULL then
<statements>
End If
I got the error, that NULL is not supported ?
How do I code the check ?
Help is appreciated, Gr.
Hi,
it would beDBNull.Value oryou can also useIsDBNull function (returns boolean based on if the given object has DBNull value)
|||Joteke, thanks a lot for you help,regards from the North Sea, Ger.
No comments:
Post a Comment