473,763 Members | 5,412 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Next problem - access to recognise appointment clashes

Hello again,

While I try and solve the calender issue I also have another problem.

I have a form & table (appointments) where the user records
appointments in the future. The fields include date, time and duration.
I would like a pop up box to appear when registering an appointment if
the time / days clash with another appointment.

Somehow I need to create a table or query that blocks out sections of
time that are "booked" so I can create the pop up box based on a If or
query.

In a similar vein I would like a pop up box to warn if a user was
booking 2 appointments in different areas in the same day. (I already
have a filter category for the area so it's more about how to get
access to recognise that there is already an appointment booked on that
day for a different area).

Has anybody done something like this before?

Dec 5 '06 #1
4 2615
tbl_user
user_id - PK (Autonumber)
user_name (Text)
.... anything else you want about the user...

tbl_area
area_id - PK (Autonumber)
area_name (Text)
.... anything else you want about the area...

tbl_appointment
appt_id - PK (Autonumber)
area_id - FK (Number)
appt_start (Date/Time)
appt_end (Date/Time)

tbl_schedule
sched_id - PK (Autonumber)
appt_id - FK (Number)
user_id - FK (Number)

Create these tables. Click on Tools->Relationship s. Add each of these
tables and join the fields with the same names to each other and click
"Enforce Referential Integrity"

Now what you are looking at is a very normalized relational database.
A "user" "schedules" an "appointmen t" which takes place in an "area".

Now create a form to access tbl_user, tbl_area, and tbl_appointment
just using the wizard.

Now, notice that the field for area_id on the appointment form just
takes numbers. Right click on it and click "Change To" and select
"Combo Box". Right click on your new combo box and click properties.
Go to data. Make sure "Rowsource Type" is "Table/Query". Now click
"Row Source", click the "..." beside it. You want to include area_id
and area_name from tbl_area. Change the "Column Count" to 2. Now use
your form. If when you choose an item from the combo box it says "the
value you entered isn't valid for this field" then you need to change
the "Bound Column" to the other number, if it's 1 make it 2 or visa
versa.

Next attempt the same thing for the schedule table, note that you will
need two combo boxes.

After you get that down I'll help with the next part.

Cheers,
Jason Lepack

keri wrote:
Hello again,

While I try and solve the calender issue I also have another problem.

I have a form & table (appointments) where the user records
appointments in the future. The fields include date, time and duration.
I would like a pop up box to appear when registering an appointment if
the time / days clash with another appointment.

Somehow I need to create a table or query that blocks out sections of
time that are "booked" so I can create the pop up box based on a If or
query.

In a similar vein I would like a pop up box to warn if a user was
booking 2 appointments in different areas in the same day. (I already
have a filter category for the area so it's more about how to get
access to recognise that there is already an appointment booked on that
day for a different area).

Has anybody done something like this before?
Dec 5 '06 #2
I could kiss you!!! Starting now.Thanks so much

jlepack wrote:
tbl_user
user_id - PK (Autonumber)
user_name (Text)
... anything else you want about the user...

tbl_area
area_id - PK (Autonumber)
area_name (Text)
... anything else you want about the area...

tbl_appointment
appt_id - PK (Autonumber)
area_id - FK (Number)
appt_start (Date/Time)
appt_end (Date/Time)

tbl_schedule
sched_id - PK (Autonumber)
appt_id - FK (Number)
user_id - FK (Number)

Create these tables. Click on Tools->Relationship s. Add each of these
tables and join the fields with the same names to each other and click
"Enforce Referential Integrity"

Now what you are looking at is a very normalized relational database.
A "user" "schedules" an "appointmen t" which takes place in an "area".

Now create a form to access tbl_user, tbl_area, and tbl_appointment
just using the wizard.

Now, notice that the field for area_id on the appointment form just
takes numbers. Right click on it and click "Change To" and select
"Combo Box". Right click on your new combo box and click properties.
Go to data. Make sure "Rowsource Type" is "Table/Query". Now click
"Row Source", click the "..." beside it. You want to include area_id
and area_name from tbl_area. Change the "Column Count" to 2. Now use
your form. If when you choose an item from the combo box it says "the
value you entered isn't valid for this field" then you need to change
the "Bound Column" to the other number, if it's 1 make it 2 or visa
versa.

Next attempt the same thing for the schedule table, note that you will
need two combo boxes.

After you get that down I'll help with the next part.

Cheers,
Jason Lepack

keri wrote:
Hello again,

While I try and solve the calender issue I also have another problem.

I have a form & table (appointments) where the user records
appointments in the future. The fields include date, time and duration.
I would like a pop up box to appear when registering an appointment if
the time / days clash with another appointment.

Somehow I need to create a table or query that blocks out sections of
time that are "booked" so I can create the pop up box based on a If or
query.

In a similar vein I would like a pop up box to warn if a user was
booking 2 appointments in different areas in the same day. (I already
have a filter category for the area so it's more about how to get
access to recognise that there is already an appointment booked on that
day for a different area).

Has anybody done something like this before?
Dec 5 '06 #3
Ah sorry, in the tbl_appointment .
format appt_start and appt_end as "Short Time" and add
appt_date (Date/Time) and format it as "Short Date"

jlepack wrote:
tbl_user
user_id - PK (Autonumber)
user_name (Text)
... anything else you want about the user...

tbl_area
area_id - PK (Autonumber)
area_name (Text)
... anything else you want about the area...

tbl_appointment
appt_id - PK (Autonumber)
area_id - FK (Number)
appt_start (Date/Time)
appt_end (Date/Time)

tbl_schedule
sched_id - PK (Autonumber)
appt_id - FK (Number)
user_id - FK (Number)

Create these tables. Click on Tools->Relationship s. Add each of these
tables and join the fields with the same names to each other and click
"Enforce Referential Integrity"

Now what you are looking at is a very normalized relational database.
A "user" "schedules" an "appointmen t" which takes place in an "area".

Now create a form to access tbl_user, tbl_area, and tbl_appointment
just using the wizard.

Now, notice that the field for area_id on the appointment form just
takes numbers. Right click on it and click "Change To" and select
"Combo Box". Right click on your new combo box and click properties.
Go to data. Make sure "Rowsource Type" is "Table/Query". Now click
"Row Source", click the "..." beside it. You want to include area_id
and area_name from tbl_area. Change the "Column Count" to 2. Now use
your form. If when you choose an item from the combo box it says "the
value you entered isn't valid for this field" then you need to change
the "Bound Column" to the other number, if it's 1 make it 2 or visa
versa.

Next attempt the same thing for the schedule table, note that you will
need two combo boxes.

After you get that down I'll help with the next part.

Cheers,
Jason Lepack

keri wrote:
Hello again,

While I try and solve the calender issue I also have another problem.

I have a form & table (appointments) where the user records
appointments in the future. The fields include date, time and duration.
I would like a pop up box to appear when registering an appointment if
the time / days clash with another appointment.

Somehow I need to create a table or query that blocks out sections of
time that are "booked" so I can create the pop up box based on a If or
query.

In a similar vein I would like a pop up box to warn if a user was
booking 2 appointments in different areas in the same day. (I already
have a filter category for the area so it's more about how to get
access to recognise that there is already an appointment booked on that
day for a different area).

Has anybody done something like this before?
Dec 5 '06 #4
And for the combo box set "Limit To List" to "Yes"
jlepack wrote:
Ah sorry, in the tbl_appointment .
format appt_start and appt_end as "Short Time" and add
appt_date (Date/Time) and format it as "Short Date"

jlepack wrote:
tbl_user
user_id - PK (Autonumber)
user_name (Text)
... anything else you want about the user...

tbl_area
area_id - PK (Autonumber)
area_name (Text)
... anything else you want about the area...

tbl_appointment
appt_id - PK (Autonumber)
area_id - FK (Number)
appt_start (Date/Time)
appt_end (Date/Time)

tbl_schedule
sched_id - PK (Autonumber)
appt_id - FK (Number)
user_id - FK (Number)

Create these tables. Click on Tools->Relationship s. Add each of these
tables and join the fields with the same names to each other and click
"Enforce Referential Integrity"

Now what you are looking at is a very normalized relational database.
A "user" "schedules" an "appointmen t" which takes place in an "area".

Now create a form to access tbl_user, tbl_area, and tbl_appointment
just using the wizard.

Now, notice that the field for area_id on the appointment form just
takes numbers. Right click on it and click "Change To" and select
"Combo Box". Right click on your new combo box and click properties.
Go to data. Make sure "Rowsource Type" is "Table/Query". Now click
"Row Source", click the "..." beside it. You want to include area_id
and area_name from tbl_area. Change the "Column Count" to 2. Now use
your form. If when you choose an item from the combo box it says "the
value you entered isn't valid for this field" then you need to change
the "Bound Column" to the other number, if it's 1 make it 2 or visa
versa.

Next attempt the same thing for the schedule table, note that you will
need two combo boxes.

After you get that down I'll help with the next part.

Cheers,
Jason Lepack

keri wrote:
Hello again,
>
While I try and solve the calender issue I also have another problem.
>
I have a form & table (appointments) where the user records
appointments in the future. The fields include date, time and duration.
I would like a pop up box to appear when registering an appointment if
the time / days clash with another appointment.
>
Somehow I need to create a table or query that blocks out sections of
time that are "booked" so I can create the pop up box based on a If or
query.
>
In a similar vein I would like a pop up box to warn if a user was
booking 2 appointments in different areas in the same day. (I already
have a filter category for the area so it's more about how to get
access to recognise that there is already an appointment booked on that
day for a different area).
>
Has anybody done something like this before?
Dec 5 '06 #5

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

Similar topics

2
6359
by: Kamyk | last post by:
Hello all! I have created a function in VB which generate appointment in Outlook. Everything is OK, except one thing. I cannot send it automatically using a button in Access, because I don`t know what is the code to send it automatically. I noticed that if I click on Calendar>"click on selected appointment">menu>Appointment>Invite Atendees everything is going well and this appointment is sent to attendees given on the list. My question...
1
2008
by: me | last post by:
I'm building a multi user app where many admins will be making calls to people in one table. I want to keep things simple and find a way to prevent 2 or more admins from working on the same record at the same time. In other words I need a way to go the next "available" record. Any help will be greatly appreciated, please reply here in the NG. Thanks in advance !!
0
1209
by: Louie.PH.Access | last post by:
Hello everyone! I need some help about the clashing events/appointment Allen Browne of Utteraccess.com post his solution to this problem which is really easy to understand. Prompting the user about the clashes is another thing, so that is my problem how to prompt the user about the clashes before it updates using the solution of Mr. Allen Browne.
0
1226
by: Smriti Dev | last post by:
Hi There, I wanted my access database to have the follwing functionality. I would really appreciate your input on how I can do this.. "When we book a contract interpreter for a job I would like for the system to send an email to the requester 48 hrs in advance to remind them that they booked an appt with us
13
9971
by: YoVoltron | last post by:
I am just starting this "appointment book" java program and would appreciate some basis direction. I do not expect anyone to write the code for me but i would like opinions on how to best handle the situation. Specifically should i use <arraylist> or a hashtable or is these a better way? Thank you all in advance. here is the assignment... sorry if it is too long. In this assignment you will demonstrate your understanding of designing with...
3
4575
by: Keyboyx | last post by:
I am creating a Dentist Booking form, for my A level project. I have the following Tables: Appointments Appointment ID Dentist ID Patient ID Appointment Date Appointment Time
4
17679
by: pjblecha | last post by:
Hello all: I'm working on a non-web-based (darn it...) application that will be set up as a scheduled task on an Exchange server to run against a mailbox 2-3 times per day. What the app needs to do is read messages in the mailbox, then create appointment items based on filtering the subject line and parsing text from the message body (which will be in HTML format). I have old VBScript that will create the appointment items, set them to a...
8
2024
by: uksigma | last post by:
Hello I'm currently doing an Access database for an A Level ICT project. The system is a combined appointment booking and payments system. The tables are: Patients (the personal details of the patient in which the patient ID is the primary key) Dentists (the same as the patients table but for the dentists, the primary key is dentist ID) Appointments (the fields are start time, duration, patient ID, dentist ID, total cost and whether...
1
1786
truthlover
by: truthlover | last post by:
Hi All, Can anyone help me to generate an Outlook 2003 Appointment that can be generated from an Access 2000 form? I have looked at some of the previous posts on this subject (both on TheScripts as well as other sources) but because my understanding of vba is so limited, I havent been able to make much sense of them. If anyone has the grace and patience to put it on a lower shelf for me, I'd be greatly appreciative (I promise, I will...
0
9563
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9386
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10144
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9937
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8821
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5270
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3917
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3522
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2793
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.