Hello.
I have a SQL Server 2000 DB. A field in a table allows "Nulls" but has no default value.
Using VB 6.0, I've written a procedure to add records to the table.
Question. How do I pass a Null 'value' to SQL Server ?
Do I have to set a default value for the field of 'Null' ? If so, how ?
Or can I do something like :
if textbox1.text = "" then VarToPassToSQL = NULL endif ?
Anyone any ideas ?
Thanks
J.
I have a SQL Server 2000 DB. A field in a table allows "Nulls" but has no default value.
Using VB 6.0, I've written a procedure to add records to the table.
Question. How do I pass a Null 'value' to SQL Server ?
Do I have to set a default value for the field of 'Null' ? If so, how ?
Or can I do something like :
if textbox1.text = "" then VarToPassToSQL = NULL endif ?
Anyone any ideas ?
Thanks
J.