Antone.evans
Member
I'm getting the error "Conversion from type 'DBNull' to type 'Date' is not valid."
here's the line generating the error.
I'm using a date/time picker control and sending the db value to it. I know that the value is null, but I don't understand why the Picker can't be blank. Is there a way to let it be blank? Or should I set up a way to check for nulls and assign today's date or something just in case?
Thanks
here's the line generating the error.
VB.NET:
dtReady.Value = dSet.Tables("Db").Rows(Inc).Item("Fixed_Date")
Thanks