473,503 Members | 1,136 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Room Booking Database

Hi folks

I teach. At school, four IT rooms are booked using a paper based outline
timetable. Completing it is easy but basic and impossible to ensure
completion of all fields (name, year group, subject and software) and
analysis of bookings is a nightmare.

I just fancied pottering with Access, which I am pretty familiar with, to
see if I could create a means of booking a room using a database. Locking a
booking would then be a problem to overcome and creating a means to analyse
the bookings should be easy.

I've scanned the internet for resources and ideas and have come up blank.

Anyway here have any ideas?

Appreciatingly yours :-)

Andy
Nov 12 '05 #1
2 8202
Andy wrote:
Hi folks

I teach. At school, four IT rooms are booked using a paper based outline
timetable. Completing it is easy but basic and impossible to ensure
completion of all fields (name, year group, subject and software) and
analysis of bookings is a nightmare.

I just fancied pottering with Access, which I am pretty familiar with, to
see if I could create a means of booking a room using a database. Locking a
booking would then be a problem to overcome and creating a means to analyse
the bookings should be easy.

I've scanned the internet for resources and ideas and have come up blank.

Anyway here have any ideas?

Appreciatingly yours :-)

Andy

This is just a general outline of a start.
Create a Names or Student table.
Create a Software table
Create a Subject table.
Create a rooms table if you think you will expand the room count.
Create a booking table. This table would have a booking id (primary
key), the nameid, the software id, the subject id, the date, the room
number, the time start, the time end.
Create a table to hold the room number, the booking table id, and time
increment.

Create a form to enter software using Software table
Create a form to enter subject using subject table
Make the subject form a subform of the software table (I assume you have
multiple subjects for each software piece)
Create a booking form. Use a combo dropdown where you can add a student
on the fly or select an existing student. Use a combo dropdown to
select the software. Create a combo to select the subject. Requery the
subject combo when the software is selected. Create fields to enter the
date.

If the user has entered all of the data up to this point in the booking
form, all that is need is to select the room and enter the start and
ending times. But you don't want a conflict in book times so you need
to see what times are available for each room for that day. And this is
the tricky part.

I would probably use a listbox to display the room numbers and another
listbox to present the current bookings. When a room number is
displayed, the bookings for that day for that room would be displayed.

The listbox for bookings would display the time and the person. I would
create a temp table. It would have a record for each time increment
8am, 8:30am...4:30pm. The person could click the (usually empty) time
slots to be filled in for the person. Once the times are selected, a
save button is pressed. The program would then scan the listbox and
create records in a schedule table that has the same structure as the
temp table.

You would need to be proficient in list boxes to use this method. ANd
you would need to permit deletions (this would remove the booking record
and all times assigned to the booking). You might have assigned a
person to 8am-9am but if you click the 8:30am row, the other person
would now have the 8-8:30 slot. IOW, deleting and updating will be your
PITAs.

I have no idea how proficient you are with Access. It may be beyond
your skill set. If you can make it up to the point before I mentioned
the list boxes, write back for more suggestions.

Nov 12 '05 #2
wi*****@dsl.pipex.com (Andy) wrote in message news:<a8*************************@posting.google.c om>...
Hi folks

I teach. At school, four IT rooms are booked using a paper based outline
timetable. Completing it is easy but basic and impossible to ensure
completion of all fields (name, year group, subject and software) and
analysis of bookings is a nightmare.

I just fancied pottering with Access, which I am pretty familiar with, to
see if I could create a means of booking a room using a database. Locking a
booking would then be a problem to overcome and creating a means to analyse
the bookings should be easy.

I've scanned the internet for resources and ideas and have come up blank.

Anyway here have any ideas?

Appreciatingly yours :-)

Andy


Andy,
before you go nuts trying to sort this out, check out Albert Kallal's
website - he has notes on the subject since it's been asked so many
times. Almost all of the following sound like tables:
Student(StudentID, name, year group...)
Subject(SubjectID, Subject,..)
Software(SoftwareID, Title,...)
Room(RoomID, Floor, RoomNo, Capacity...)

Then your bookings table would look something like this:

Reservations(RoomID,StudentID,ResStart,ResFinish)

then for each room you would allow [Capacity] reservations within a
given time frame. I would be inclined to do math on the StartDate and
EndDate - just more flexible that way...
Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
18633
by: Dave Robinson | last post by:
I was wondering if anyone could help me with a problem I'm having. I've been using Dreamweaver to create a hotel booking system for a friend of mine, using MySQL (version 4.0.21) and PHP 5. The...
4
2423
by: Grant | last post by:
Hi I have a database which logs the usage of rooms. Some booking are entered well in advance, and some have stays of more than six months. I would like to ensure that rooms which have been...
4
3233
by: WiseOwl | last post by:
Hi folks I teach. At school, four IT rooms are booked using a paper based outline timetable. Completing it is easy but basic and impossible to ensure completion of all fields (name, year...
2
699
by: Andy | last post by:
Hi folks I teach. At school, four IT rooms are booked using a paper based outline timetable. Completing it is easy but basic and impossible to ensure completion of all fields (name, year...
5
2819
by: Steven Blair | last post by:
My problem is trying to calcuate whether a room is booked during a date period. I have a table with two columns (Start and End date). I need some SQL code to calculate whether a room is booked...
25
2827
by: NDayave | last post by:
How do, I have a access 2000 booking database with Personal Details, Outing Details and the Bookings in three tables: tblBookings -- -Autonumber, -Number, -Number, -Currency, -Yes/No, -Yes/No ...
5
2740
by: Armenante | last post by:
Hi, I am creating a database for my A level project and i am stuck on the validation for the booking part of the database, and was just wondering if anyone could help me out? It is a plumbing...
5
2793
by: Peter Sutton | last post by:
Greetings all, My booking system includes 2 tables: tblRooms with the key field RoomID, and some other fields AND a tblBooked Rooms with a number of fields including RoomID and BookedDate. ...
4
2666
by: phill86 | last post by:
Hi, I am trying to represent on a form time slots I have re-created the look of an outlook calendar on the form I have a table with the calendar bookings start and end time and there could be any...
0
7203
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7282
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6995
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7463
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4678
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3168
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3157
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
738
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
389
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.