I wonder if you have encountered such a problem. If you encounter a DateTime type error when using parameterized query or updating records in the ACCESS database. According to Chapter E of Mencius, this may be because the date type in C # cannot be directly converted to the date type OleDbType. DBDate in Access. His solution. But if we
I don't know if you have encountered such a problem. If you use the DateTime type to query or update records in the ACCESS database, an error will occur. According to Chapter E of Mencius, this may be because the date type in C # cannot be directly converted to the date type OleDbType. DBDate in Access. His solution. But if we
I wonder if you have encountered such a problem. In the ACCESS databaseUseParametersWhen querying or updating a record, if the DateTime type is encounteredError. According to Chapter E of Mencius, this may be because the date type in C # cannot be directly converted to the date type OleDbType. DBDate in Access ". His solution.
But if weParametersChange the type to OleDbType. DBDate. Then the problem is that the time part of the DateTime type of dotNet cannot be saved to the ACCESS database.
I can't solve this problem all the time. The only solution is to write it directly in an SQL statement, for example, "#2:20:20 #".
You have a solutionUseParametersType to save the complete DateTime? Let's discuss it together.