I am putting together a query using Linked tables from our EHR Database...I have the following code that can be used within Crystal Reports:
NumberVar ID := {document.clinicaldate};
NumberVar Sec := Truncate (ID/1000000);
//Convert seconds to days
NumberVar Days := Truncate(Sec / 3600 / 24);
// Convert days to a date and time
DateTime(Date(1960,01,01) + Days
, Time(0,0,0) + Sec)
However I do not know how to do this in Access so that when I am putting together a query I can use this to alter the existing data that comes in for the field document.clinicaldate.
An example of what comes in now is: 1472049502000000
Any help would be great thanks.
Chris