473,486 Members | 2,131 Online
Bytes | Software Development & Data Engineering Community
Create 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 2582
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->Relationships. 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 "appointment" 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->Relationships. 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 "appointment" 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->Relationships. 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 "appointment" 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->Relationships. 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 "appointment" 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
6343
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...
1
1995
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...
0
1195
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...
0
1218
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...
13
9939
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...
3
4548
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
17632
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...
8
2008
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...
1
1773
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...
0
6964
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...
1
6842
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
5434
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,...
1
4865
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4559
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
3070
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
3070
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1378
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 ...
0
262
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.