I need to subtract one date from another in order to find the time difference between the two (to the hour). The date fields are each in a separate table. The data is in "text" format, and looks like the following:
2001-08-01-10.03.04.000000 (this is 08/01/2001 10am, I think)
I would like to subtract two dates, and get a number like 12.72 (days). This obviously means I will only need year/mo/day/hours.
I've been trying to use an update query to change the existing field format to 13 digits with this:
Format(Left([TCR_R_INQ_STATUS].[UPDATE_DATE],13),"mm/dd/yyyy hh")
It does change the date to 13 digits, but when I try to subtract the dates, I get "#error" messages in the field.
Any help would be greatly appreciated. I've been trying to figure this out for hours.
2001-08-01-10.03.04.000000 (this is 08/01/2001 10am, I think)
I would like to subtract two dates, and get a number like 12.72 (days). This obviously means I will only need year/mo/day/hours.
I've been trying to use an update query to change the existing field format to 13 digits with this:
Format(Left([TCR_R_INQ_STATUS].[UPDATE_DATE],13),"mm/dd/yyyy hh")
It does change the date to 13 digits, but when I try to subtract the dates, I get "#error" messages in the field.
Any help would be greatly appreciated. I've been trying to figure this out for hours.