I have to build some queries based on a table called ASSIGN which stores dates and times as nine digit string as follows:
CALLDAT = 131336708
CALLTME = 269688871
I've been give the following algorithm for converting these to date / time format:
Dat = CALLDAT_HDW
Tme = CALLTME_HDW
YYYY = Int(Dat / 65536)
Mm = Int((Dat - (YYYY * 65536)) / 256)
Dd = Dat - (YYYY * 65536) - (Mm * 256)
Nhour = Int(Tme / 16777216)
nMinute = Int((Tme - (Nhour * 16777216)) / 65536)
NSecond = Int((Tme - (Nhour * 16777216) - (nMinute * 65536)) / 256)
I'm very happy building simple queries - less so with modules & VBA.
Would be very grateful if someone could explain how I take this info and generate a date / time which I can view in a simple report.
thanks
John S
CALLDAT = 131336708
CALLTME = 269688871
I've been give the following algorithm for converting these to date / time format:
Dat = CALLDAT_HDW
Tme = CALLTME_HDW
YYYY = Int(Dat / 65536)
Mm = Int((Dat - (YYYY * 65536)) / 256)
Dd = Dat - (YYYY * 65536) - (Mm * 256)
Nhour = Int(Tme / 16777216)
nMinute = Int((Tme - (Nhour * 16777216)) / 65536)
NSecond = Int((Tme - (Nhour * 16777216) - (nMinute * 65536)) / 256)
I'm very happy building simple queries - less so with modules & VBA.
Would be very grateful if someone could explain how I take this info and generate a date / time which I can view in a simple report.
thanks
John S