L
Learner
Hello,
I have database field called 'PullAHead' defined as a bit field.
Now if user doesn't pick a 'Yes' or 'No' in the front I need to be able
to send a null value into the 'PullAHead' field in the database.
This is how I am trying to do it....
Dim PullAhead As Integer
PullAhead = Nothing
If _lblpullahead.Visible = True Then
PullAhead =
Convert.ToInt32(_drplPullAhead.SelectedValue.Trim)
End If
and finally I am sending the PullAhead integer variable to the
parameters list. But it is sending 0 (i.e I see False in the database
as its a bit field).
Could some one help me here how do I send a null value to the PullAHead
field?
Thanks
-L
I have database field called 'PullAHead' defined as a bit field.
Now if user doesn't pick a 'Yes' or 'No' in the front I need to be able
to send a null value into the 'PullAHead' field in the database.
This is how I am trying to do it....
Dim PullAhead As Integer
PullAhead = Nothing
If _lblpullahead.Visible = True Then
PullAhead =
Convert.ToInt32(_drplPullAhead.SelectedValue.Trim)
End If
and finally I am sending the PullAhead integer variable to the
parameters list. But it is sending 0 (i.e I see False in the database
as its a bit field).
Could some one help me here how do I send a null value to the PullAHead
field?
Thanks
-L