PC Review


Reply
Thread Tools Rate Thread

Date/Time fields

 
 
=?Utf-8?B?SGlja3N5?=
Guest
Posts: n/a
 
      20th May 2007
Hi everyone!
I am setting up a vehicle bookings database and a very important part of it
is that when a user books a vehicle, the date and time 'in' and 'out' must be
verified to avoid double bookings. Would the best way to tackle this be to
set up a general date field with both the date and time together for the 'in'
and 'out' fields. Would it then be possible to look at these fields to
distinguish if the vehicle is already booked at a certain time?
Thanks
 
Reply With Quote
 
 
 
 
Douglas J. Steele
Guest
Posts: n/a
 
      20th May 2007
No question that you should store date and time in the same field. If/when
you only want the date portion or the time portion, use the DateValue or
TimeValue functions as calculated fields in a query.

To avoid double-booking, take a look at what Allen Browne has at
http://www.allenbrowne.com/appevent.html

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)


"Hicksy" <(E-Mail Removed)> wrote in message
news:8B38658A-EE85-4B53-99DF-(E-Mail Removed)...
> Hi everyone!
> I am setting up a vehicle bookings database and a very important part of
> it
> is that when a user books a vehicle, the date and time 'in' and 'out' must
> be
> verified to avoid double bookings. Would the best way to tackle this be to
> set up a general date field with both the date and time together for the
> 'in'
> and 'out' fields. Would it then be possible to look at these fields to
> distinguish if the vehicle is already booked at a certain time?
> Thanks



 
Reply With Quote
 
=?Utf-8?B?SGlja3N5?=
Guest
Posts: n/a
 
      20th May 2007
Many thanks for your help

"Douglas J. Steele" wrote:

> No question that you should store date and time in the same field. If/when
> you only want the date portion or the time portion, use the DateValue or
> TimeValue functions as calculated fields in a query.
>
> To avoid double-booking, take a look at what Allen Browne has at
> http://www.allenbrowne.com/appevent.html
>
> --
> Doug Steele, Microsoft Access MVP
> http://I.Am/DougSteele
> (no private e-mails, please)
>
>
> "Hicksy" <(E-Mail Removed)> wrote in message
> news:8B38658A-EE85-4B53-99DF-(E-Mail Removed)...
> > Hi everyone!
> > I am setting up a vehicle bookings database and a very important part of
> > it
> > is that when a user books a vehicle, the date and time 'in' and 'out' must
> > be
> > verified to avoid double bookings. Would the best way to tackle this be to
> > set up a general date field with both the date and time together for the
> > 'in'
> > and 'out' fields. Would it then be possible to look at these fields to
> > distinguish if the vehicle is already booked at a certain time?
> > Thanks

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Writing a General Date from separate date and time fields DubboPete Microsoft Access Form Coding 3 11th Feb 2010 03:31 PM
Time zone in Date/Time fields Bill Microsoft Outlook Form Programming 1 7th May 2007 05:40 PM
Elapsed time in seconds from separate date and time fields =?Utf-8?B?U3VzeQ==?= Microsoft Access Queries 2 6th Apr 2007 07:18 PM
How do I compare just the date portion of date time fields in SQL? =?Utf-8?B?QnJhbmRlbg==?= Microsoft Access Queries 3 29th Nov 2005 11:22 PM
Concatenating Date and Time Fields for Lag Time Analyses =?Utf-8?B?UmljaFQ=?= Microsoft Access Queries 2 3rd Aug 2004 07:05 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:45 AM.