Determine date given Day of year and year.

pickslides

Red Sails In The Sunset
Local time
Today, 12:44
Joined
Apr 29, 2008
Messages
76
I have fields [DayOfYear] and [Year] can I somehow produce the dd/mm/yyyy from this. I know how to do it in Excel but the Asscess function Date() is a little different.

I.e. if [DayOfYear] =152, [Year] = 2014 then [Date] = 2/6/2014

MQ
 
Code:
DateAdd("d", [DayOfYear], DateSerial([yearfield],1,0))
 
Why two function calls won't

Dateserial([yearfield],1,[dayofyear])

Do the trick?

Sorry can't test haven't got Access any more

Brian
 
Brian is right,
?dateserial(2014,1,152)
01-JUN-2014
or
?dateserial(2014,1,0) + 152
01-JUN-2014
 

Users who are viewing this thread

Back
Top Bottom