• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 406
  • Last Modified:

Access Query (Time Slots Availability)

Hey

My Table Structure is something like this:

conference_hall_name
date
timefrom
timeto
username

I want a query where user can check the availability of room according to the time.

I want the user to input Conference Hall, Date, Timefrom and Timeto

If the room is booked, it will show a msgbox showing room is booked by "username", else it will show "It's Available"

Is it possible?

Thanks :)
0
Rahul Sehrawat
Asked:
Rahul Sehrawat
  • 6
  • 5
1 Solution
 
Rey Obrero (Capricorn1)Commented:
do you already have a form to enter the parameters ?

0
 
Rahul SehrawatAuthor Commented:
Yes!
Form Name: Availability_Form

Text Fields:

conference_room_name
meeting_date
time_from
time_to

I want to check the availability on click event of the button.

Thanks.
0
 
Rey Obrero (Capricorn1)Commented:
post the datatype of your fields from the table
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
Rey Obrero (Capricorn1)Commented:
better if you will upload a copy of your db..
0
 
Rahul SehrawatAuthor Commented:
Hey,

I have attached the file.

Availability Form is the Main One.

Thanks :)
booking.mdb
0
 
Rey Obrero (Capricorn1)Commented:
test this


booking.mdb
0
 
Rahul SehrawatAuthor Commented:
Hey,

The file is not working perfectly.

Issue is:
Example:
Demo Data Has Booking for 28-Sept-2010 from 10:30 to 11:30

If I Enter Data As
From Time: 10:25 to 11:40 - It show's Booking Available Should Be Already Booked
From Time: 10:25 to 11:25 - It show's Booking Available Should Be Already Booked
From Time: 10:35 to 11:40 - It show's Booking Available Should Be Already Booked

If I Enter Time Between the Booked Timing, Then only it shows that It has been Booked.

Thanks :)
0
 
Rey Obrero (Capricorn1)Commented:
ok. we need more criteria in the where part of  the query. i'll  be out for a while. we'll continue when i come back...
0
 
Rahul SehrawatAuthor Commented:
Sure. :)
0
 
Rey Obrero (Capricorn1)Commented:
test this thoroughly



booking.mdb
0
 
Rahul SehrawatAuthor Commented:
Program Is Working Great.
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

  • 6
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now