I have an Access table with a DATETIME field. The field is not formatted as general, I left it as default (blank)
I have created a SQL table on the web using ODBC by exporting my table. That field is also DATETIME.
When viewing the dates, I see that:
Access is storing data like this:
11/26/2012 4:27:39 PM
I am learning that this is just how it appears, and that Access actually stores the data as a floating point number.
Looking at my SQL table, I see the data presented as:
2012-11-27 23:06:59
I am trying to make data comparisons. I wrote SQL like this and it does not work:
tblAndroid is my SQL table and tblResponses is my local table. I was trying to escape the date using "#" but I don't quite understand where to place those. I also read that converting the date/time to ISO format would make the date/time an integer and make comparisons possible, but I could not find examples how to do that.
Any help is appreciated.
I have created a SQL table on the web using ODBC by exporting my table. That field is also DATETIME.
When viewing the dates, I see that:
Access is storing data like this:
11/26/2012 4:27:39 PM
I am learning that this is just how it appears, and that Access actually stores the data as a floating point number.
Looking at my SQL table, I see the data presented as:
2012-11-27 23:06:59
I am trying to make data comparisons. I wrote SQL like this and it does not work:
Code:
SELECT tblAndroid.Rspns,
tblAndroid.RspnsComment,
tblAndroid.AnswerTIme,
tblAndroid.ImgPath
FROM tblResponses, tblAndroid
WHERE (((tblAndroid.RspnsID)
Like [forms]![frmUpAndroid]![txtRspnsID])
AND ([tblAndroid].[AnswerTIme]
>[tblResponses].[AnswerTimeLOC]));
Any help is appreciated.
Comment