Hi,
I have datagrid filled using SqlDataAdapter. One of the fields is a date
field which can be null.
When I assign null value I receive the following error:
"SqlDateTim e overflow. Must be between 1/1/1753 12:00:00 AM and
12/31/9999 11:59:59 PM."
My code:
Dim dateunl As TextBox
dateunl = CType(e.Item.Ce lls(11).Control s(0), TextBox)
If dateunl.Text = "" Then
dateunloadnew = Nothing
Else : dateunloadnew = dateunl.Text
End If
Dim r As Loadings._Dom_L oadingsRow
r = Loadings2._Dom_ Loadings.FindBy id(key)
r.DateUnload() = dateunloadnew
SqlDataAdapter1 .Update(Loading s2)
Thanks,
Movsum
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Comment