C
crjunk
I have a text box that records a date. If the user enters a date in
the text box, and click on save, the date will be saved in the SQL
table, but if the user does not enter a date in this field and then
clicks save, I reveive the following message:
Cast from string "" to type 'Date' is not valid
The DateTime field in my table has Allow Nulls set to true. How can I
prevent this error from occuring if the user decides not to enter in a
date into the textbox when saving arecord?
Thanks,
C.R.
the text box, and click on save, the date will be saved in the SQL
table, but if the user does not enter a date in this field and then
clicks save, I reveive the following message:
Cast from string "" to type 'Date' is not valid
The DateTime field in my table has Allow Nulls set to true. How can I
prevent this error from occuring if the user decides not to enter in a
date into the textbox when saving arecord?
Thanks,
C.R.