From: James A. Fortune on
On Mar 17, 8:12 pm, "KenSheridan via AccessMonster.com" <u51882(a)uwe>
wrote:
> The following function would round a date/time value down to the nearest hour:
>
> Public Function RoundToHour(dtmDateTime As Date) As Date
>
>     RoundToHour = CDate(Format(dtmDateTime, "yyyy-mm-dd hh:00:00"))
>
> End Function
>
> Ken Sheridan
> Stafford, England

That's a very nice, elegant function!

James A. Fortune
MPAPoster(a)FortuneJames.com
From: KenSheridan via AccessMonster.com on
Kind of you to say so, James.

Ken Sheridan,
Stafford, England

James A. Fortune wrote:
>On Mar 17, 8:12 pm, "KenSheridan via AccessMonster.com" <u51882(a)uwe>
>wrote:
>> The following function would round a date/time value down to the nearest hour:
>>
>[quoted text clipped - 6 lines]
>> Ken Sheridan
>> Stafford, England
>
>That's a very nice, elegant function!
>
>James A. Fortune
>MPAPoster(a)FortuneJames.com

--
Message posted via http://www.accessmonster.com