Date/Time fields

G

Guest

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
 
D

Douglas J. Steele

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
 
G

Guest

Many thanks for your help

Douglas J. Steele said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top