473,386 Members | 1,830 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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 8184
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
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
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
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
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
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
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
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
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
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
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...

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.