Aug 2, 2005 #1 kingz2000 Programmer May 28, 2002 304 DE HI Guys, in oracle SQL last_day (to_date('2003/03/15', 'yyyy/mm/dd')) would return Mar 31, 2003 HOw do I get the 'last day' of a month in ACCESS??? Thanks in advance!!
HI Guys, in oracle SQL last_day (to_date('2003/03/15', 'yyyy/mm/dd')) would return Mar 31, 2003 HOw do I get the 'last day' of a month in ACCESS??? Thanks in advance!!
Aug 2, 2005 1 #2 Remou Technical User Sep 30, 2002 13,030 BE Hi Maybe: [tt]dateserial(year(date),month(date)+1,1)-1[/tt] Upvote 0 Downvote
Aug 2, 2005 Thread starter #3 kingz2000 Programmer May 28, 2002 304 DE Nice !!Thanks! Upvote 0 Downvote
Aug 2, 2005 Thread starter #4 kingz2000 Programmer May 28, 2002 304 DE last question: How would I find out the last day with merely the month number??) Upvote 0 Downvote
Aug 2, 2005 #5 Remou Technical User Sep 30, 2002 13,030 BE I am not sure I have got your point, but here goes anyway: [tt]MnthNo = 10 SomeYear = 2005 Lastday=Day(Dateserial(SomeYear,MnthNo+1,1)-1)[/tt] Upvote 0 Downvote
I am not sure I have got your point, but here goes anyway: [tt]MnthNo = 10 SomeYear = 2005 Lastday=Day(Dateserial(SomeYear,MnthNo+1,1)-1)[/tt]
Aug 2, 2005 #7 PHV MIS Nov 8, 2002 53,708 FR A simpler version: Lastday=Day(Dateserial(SomeYear,MnthNo+1,0)) Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886 Upvote 0 Downvote
A simpler version: Lastday=Day(Dateserial(SomeYear,MnthNo+1,0)) Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886