G
Guest
Hello,
I wish to set a date in a datarow to dbNull. the column fixeddate does allow nulls in the
dataset
Whenever I try and set the value to dbNull or "" I get an invalid cast error, is there any way tha
I can get
Dim drCurrentProj as dataro
Call MyDataAccess.LoadDataset(GblConnectionString2, mysqladapter, Mydataset, strquery, "Project"
DrCurrentProj = Mydataset.Tables("Project").Rows.Find(IntProjectId
Dim strFixedDate As String = MyForm.dtpFixedDate.Tex
If Not IsDBNull(strFixedDate) And strFixedDate <> "01 January 0001" And strFixedDate <> "" The
DrCurrentProj("FixedDate") = CDate(strFixedDate
ElseIf strFixedDate = "" The
DrCurrentProj("FixedDate") = DBNul
End I
Any ideas on how this seemingly simple task could be achieve
The datetimepicker that I'm using is a speciall datetimepicker called datetimeslicker that blanks out the field if you uncheck the checkbox
any help would be greatly appreciated
David
I wish to set a date in a datarow to dbNull. the column fixeddate does allow nulls in the
dataset
Whenever I try and set the value to dbNull or "" I get an invalid cast error, is there any way tha
I can get
Dim drCurrentProj as dataro
Call MyDataAccess.LoadDataset(GblConnectionString2, mysqladapter, Mydataset, strquery, "Project"
DrCurrentProj = Mydataset.Tables("Project").Rows.Find(IntProjectId
Dim strFixedDate As String = MyForm.dtpFixedDate.Tex
If Not IsDBNull(strFixedDate) And strFixedDate <> "01 January 0001" And strFixedDate <> "" The
DrCurrentProj("FixedDate") = CDate(strFixedDate
ElseIf strFixedDate = "" The
DrCurrentProj("FixedDate") = DBNul
End I
Any ideas on how this seemingly simple task could be achieve
The datetimepicker that I'm using is a speciall datetimepicker called datetimeslicker that blanks out the field if you uncheck the checkbox
any help would be greatly appreciated
David