Date/Time fields

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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
 
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

Similar Threads

How to set this up? 9
Access Parking violations Access Database 0
DMax expression 2
How to create a sort order number in a query 2
Refresh original form 1
Networkdays Conundrum 3
Union Query Where Clause 0
Details on a Report 1

Back
Top