Solved

Access Query (Time Slots Availability)

Posted on 2010-09-01
11
386 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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

758 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

21 Experts available now in Live!

Get 1:1 Help Now