D
darrel
I should know this, but I don't...
How do I enter a null value in an integer field using parameterized SQL?
I have this:
Dim bonding2ID As Integer
If cleanSQLinput(DropDownList_bondingCo2.SelectedItem.Value.ToString) =
"none" Then
bonding2ID = DBNull.Value
Else
bonding2ID =
cleanSQLinput(DropDownList_bondingCo2.SelectedItem.Value.ToString)
End If
But it's not liking the 'DBNull.Value' part.
-Darrel
=================================================================
Win prizes searching google:
http://www.blingo.com/friends?ref=hM72-GU3FWzMFnTqhv-2GE1FNtA
How do I enter a null value in an integer field using parameterized SQL?
I have this:
Dim bonding2ID As Integer
If cleanSQLinput(DropDownList_bondingCo2.SelectedItem.Value.ToString) =
"none" Then
bonding2ID = DBNull.Value
Else
bonding2ID =
cleanSQLinput(DropDownList_bondingCo2.SelectedItem.Value.ToString)
End If
But it's not liking the 'DBNull.Value' part.
-Darrel
=================================================================
Win prizes searching google:
http://www.blingo.com/friends?ref=hM72-GU3FWzMFnTqhv-2GE1FNtA