Hi all,
I've been trying to get a query working that worked fine previously, but now it refuses to work properly. I'm trying to run a SQL query to append a new value to a table, but it's choking on my date submitted value and throwing a type mismatch 13 error, and I don't think that the problem lies in my SQL statement.
There is a date value saved to the date field, I can query values on other fields just fine, but if I try ?Me.Datefield in the Immediate window I get the same type mismatch error. I also tried assigning the date value to a variable and using CDate() to convert the value, but it just doesn't seem to be able to read the data.
The back end is set up on SQL server and the data type is datetime2, which I haven't had problems working with before. .
Anyone have any ideas on what the problem might be? I've not had any luck googling the problem.
I've been trying to get a query working that worked fine previously, but now it refuses to work properly. I'm trying to run a SQL query to append a new value to a table, but it's choking on my date submitted value and throwing a type mismatch 13 error, and I don't think that the problem lies in my SQL statement.
There is a date value saved to the date field, I can query values on other fields just fine, but if I try ?Me.Datefield in the Immediate window I get the same type mismatch error. I also tried assigning the date value to a variable and using CDate() to convert the value, but it just doesn't seem to be able to read the data.
The back end is set up on SQL server and the data type is datetime2, which I haven't had problems working with before. .
Anyone have any ideas on what the problem might be? I've not had any luck googling the problem.