Solved

Access Query (Time Slots Availability)

Posted on 2010-09-01
11
387 Views
Last Modified: 2012-05-10
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
Comment
Question by:Rahul Sehrawat
  • 6
  • 5
11 Comments
 
LVL 119

Expert Comment

by:Rey Obrero
ID: 33579394
do you already have a form to enter the parameters ?

0
 

Author Comment

by:Rahul Sehrawat
ID: 33579449
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
 
LVL 119

Expert Comment

by:Rey Obrero
ID: 33579471
post the datatype of your fields from the table
0
 
LVL 119

Expert Comment

by:Rey Obrero
ID: 33579476
better if you will upload a copy of your db..
0
 

Author Comment

by:Rahul Sehrawat
ID: 33579529
Hey,

I have attached the file.

Availability Form is the Main One.

Thanks :)
booking.mdb
0
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 
LVL 119

Expert Comment

by:Rey Obrero
ID: 33580162
test this


booking.mdb
0
 

Author Comment

by:Rahul Sehrawat
ID: 33580369
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
 
LVL 119

Expert Comment

by:Rey Obrero
ID: 33580432
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
 

Author Comment

by:Rahul Sehrawat
ID: 33580446
Sure. :)
0
 
LVL 119

Accepted Solution

by:
Rey Obrero earned 500 total points
ID: 33582683
test this thoroughly



booking.mdb
0
 

Author Closing Comment

by:Rahul Sehrawat
ID: 33583693
Program Is Working Great.
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now