I have a gridview in ASP web form that connects and updates and inserts records in mdb file and one field is a date.
I want ASP to treat it as DateTime format. What should I set for the type and any formatting is needed in mdb file when I create it in Access ?
I first set type in Access the field to Date/Time, then when I use code to get DateTime.Now and save to that field, I get this error, or no date/time is saved to that field (However, if I set field type in Access mdb to Text, the time and date of now is saved to the filed, but then ASP treat it as text instead of date and this causes trouble in my future use of this date).
Did I do something wrong ? Thanks
[OleDbException (0x80040e07): Data type mismatch in criteria expression.]
Thanks