I'm working on a VB .Net program that uses an Access database. I can't seem to find a way to insert a datetime value. No matter what I try I keep getting "Data type mismatch in criteria expression". Any help with this would be greatly appreciated.
Alex I've already tried that and still get "Data type mismatch in criteria expression" no matter how I how format the date string. I've worked more with SQL Server and MySQL and this has not been a problem.
Perhaps you should use the parameters that come with the command object. This way you also prevent sql-injection and any future problems with dates (like the fact that the dafult can change on the serverside).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.