Hi All
I'm currently learning VB.Net and have come upon a problem that I'm sure you can help me with.
I have bound a field that holds a date from a MSAccess db DateTime Type. In this case VB.Net renders the date with the time stamp which I didn't need. So I formatted the date to a shortdate using the binding method. This works well. However I sometimes need to remove the date from the form, in this case the form produces an empty string and when you update the form it throws an error "String was not recognised as a valid DateTime" I realise that the program is trying to parse an empty string to a datetime type. But I'm not sure how to fix the problem. I need to be able to update a Null value back into the database.
Can you help
Regards Mal
I'm currently learning VB.Net and have come upon a problem that I'm sure you can help me with.
I have bound a field that holds a date from a MSAccess db DateTime Type. In this case VB.Net renders the date with the time stamp which I didn't need. So I formatted the date to a shortdate using the binding method. This works well. However I sometimes need to remove the date from the form, in this case the form produces an empty string and when you update the form it throws an error "String was not recognised as a valid DateTime" I realise that the program is trying to parse an empty string to a datetime type. But I'm not sure how to fix the problem. I need to be able to update a Null value back into the database.
Can you help
Regards Mal