J
John
Hi
I am passing an sqlconnection optional parameter as below;
Optional ByVal DBConn As SqlClient.SqlConnection = Nothing
I have given it an initial value of nothing howee rwhe I try to test for
nothing like;
If DBConn = Nothing
I get an 'Operator '=' is not defined for types
'System.Data.SqlClient.SqlConnection' and
'System.Data.SqlClient.SqlConnection' error. What am I missing and how can I
check if a value was in fact passed for the optional parameter DBConn?
Thanks
Regards
I am passing an sqlconnection optional parameter as below;
Optional ByVal DBConn As SqlClient.SqlConnection = Nothing
I have given it an initial value of nothing howee rwhe I try to test for
nothing like;
If DBConn = Nothing
I get an 'Operator '=' is not defined for types
'System.Data.SqlClient.SqlConnection' and
'System.Data.SqlClient.SqlConnection' error. What am I missing and how can I
check if a value was in fact passed for the optional parameter DBConn?
Thanks
Regards