Solved

Access Query (Time Slots Availability)

Posted on 2010-09-01
11
395 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 5
11 Comments
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
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 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 33579471
post the datatype of your fields from the table
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
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
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
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 120

Expert Comment

by:Rey Obrero (Capricorn1)
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 120

Accepted Solution

by:
Rey Obrero (Capricorn1) 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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
Microsoft Access is a place to store data within tables and represent this stored data using multiple database objects such as in form of macros, forms, reports, etc. After a MS Access database is created there is need to improve the performance and…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.

707 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