Wrox Programmer Forums
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 16th, 2004, 09:35 PM
Authorized User
 
Join Date: Apr 2004
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default Query Round up

Hi

I'm trying to round up a time to the nearest 15 minutes in a query.
Anyone know how to do this?

Cheers / Fred

 
Old December 17th, 2004, 09:49 AM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 625
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jemacc
Default

You can do something like:
Code:
TimeSerial(Hour(Time()),((Datepart("n",Time())+7)\15)*15,0)

Jaime E. Maccou





Similar Threads
Thread Thread Starter Forum Replies Last Post
Round() kingroon Classic ASP Basics 1 September 15th, 2008 01:17 PM
asp round crmpicco Classic ASP Basics 3 June 6th, 2005 08:47 AM
round (again) crmpicco Classic ASP Basics 1 March 17th, 2005 08:14 AM
round function help mohiddin52 Access 2 October 21st, 2004 07:14 AM
Round Paul_T SQL Server 2000 7 July 7th, 2004 02:37 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.