Try this
Code:If sSubcat = "" Then cmd.Parameters.AddWithValue("SubCategory", DBNull.Value) Else cmd.Parameters.AddWithValue("SubCategory", sSubcat) End If
|
Results 1 to 3 of 3
Threaded View
|
Click Here to Expand Forum to Full Width |