Hello,

I am having a tough time debugging a code. I would appreciate some help.

In my form, I have a DateTimePicker that is connected to a database. I entered a date manually in the database and when I load the form, it reads the date and displays it just fine. However, when I pick a date in the datepicker, and update the database, the following error comes up and the operation fails:

Code:
The column name is not valid. [ Node name (if any) = ,Column name = DateTimePickerMembershipExpiration ]
In the table schema, the data type for that field was date and failed to convert. I made it nvarchar and that error pops up. Not sure what the problem is since it reads it on form load so it DOES exist.

Any ideas?

Best,