cyberbiker
Programmer
Before I go off with some goofy code to fix this, perhaps someone knows a better way.
I have a a fair number of date time fields (smalldatetime data type) in my SQL Server database. Null values are permitted.
On one form in my app I have 2 bound text boxes that are assigned the value of the Now() function when a check box is checked.
When I uncheck the check box I clear the value in the text box creating an empty string which (of course) causes the update to fail.
Requiring a date or time value for each record is not an option which is why Nulls are permitted.
Due to the nature of the app it is also very likely that these 2 fields will need returned to a null state.
Any ideas will be appreciated
Terry (cyberbiker)
I have a a fair number of date time fields (smalldatetime data type) in my SQL Server database. Null values are permitted.
On one form in my app I have 2 bound text boxes that are assigned the value of the Now() function when a check box is checked.
When I uncheck the check box I clear the value in the text box creating an empty string which (of course) causes the update to fail.
Requiring a date or time value for each record is not an option which is why Nulls are permitted.
Due to the nature of the app it is also very likely that these 2 fields will need returned to a null state.
Any ideas will be appreciated
Terry (cyberbiker)