jazminecat
Programmer
I posted this in the Access queries and jet sql forum, but they sent me over here.
I have a table with dates from our AS/400 in a wierd format
106001 = 1/1/06
106002 = 1/2/06
105365 = 12/31/05
so basically, the first digit is useless, the second two are the year, and the last three are the day of the year. The date field that contains these computer dates is called YTDWK.
Here is my SQL:
when i try to run it, i get an error ADO error: date serial is not a recognized function. can anyone help me with this?
thanks!
I have a table with dates from our AS/400 in a wierd format
106001 = 1/1/06
106002 = 1/2/06
105365 = 12/31/05
so basically, the first digit is useless, the second two are the year, and the last three are the day of the year. The date field that contains these computer dates is called YTDWK.
Here is my SQL:
Code:
SELECT Finance_Admin.JailDetail.NAME,
SUM(Finance_Admin.JailDetail.HOURS) AS HoursTaken,
Finance_Admin.JailDetail.YTAN8 AS Emp#,
Finance_Admin.JailDetail.YTDWK,
DateSerial(1900 + 'YTDWK1000', 1, 'YTDWK Mod 1000')
AS Expr1
FROM Finance_Admin.[2006Dates] INNER JOIN
Finance_Admin.JailDetail ON
Finance_Admin.[2006Dates].MachineDate = Finance_Admin.JailDetail.YTDWK
GROUP BY Finance_Admin.JailDetail.NAME,
Finance_Admin.JailDetail.YTAN8,
Finance_Admin.JailDetail.YTDWK
when i try to run it, i get an error ADO error: date serial is not a recognized function. can anyone help me with this?
thanks!