473,769 Members | 5,877 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Recurring appointments philosophy

Hi All

I am writing a program for a gymnasium for membership control

It is the first time I have had to deal with appointment diaries and I want
to know the best way to store recurring appointments

1. Do I calculate and save all future appointments as table records at the
time of creation of the Recurring appointment or ..
2. Do I just save the details and create the appointments in code whenever
the need to be displayed in a diary page
Regards
Steve
Nov 21 '05 #1
1 2427

I am doing up a doctor's office system for a friend so I am working on
this too. I haven't gotten as far as designing this part yet but from
other calendar systems I see requirements for

- Being able to alter all the recurring entries at once - say change
them all from 1:00pm to 1:15
- Being able to alter specfic entries without impacting the others -
say change next week's to 1:15 but leave all the others at 1:00.
This much has lead me so far to

1) Create a 'Repeating Appointment' entry and place in the
RepeatingAppoin tmentTable

- If we only generate and store the individual appointment entries
then we create an amount of extra work for ourselves
if we ever want to do a mass change. basically we'll need to
recreate this entry so we may as well store it now.

2) Create enties for each appointment instance and place in the
appointment table, FK to the recurring appointment

3) If we want to modify an individual entry then we need to update the
appointment instance

- here is one reason why I prefer the pre-create rather than
create on the fly. In the on the fly approach, if we modify a specific
appointment instance then when we generate all the appointment
instances from the recurring appointment we'll need to subtract this
'real' appointment. It gets even worse if we delete a specfic
appointment because we now need a placeholder to show a deleted
appointment to be subtracted from the recurring appointment.

4) if we want to do a mass update, some properties we will want to
change on everything, even the modified appointments (say a location or
a doctor / trainer) others we shall want to leave as modified. e.g. If
we want to change the time for all of them but have already moved the
appointment for 10/12 back half an hour because the client/patient can
only make it at that time, well then we'll want to skip that one but
modify all the others.

- one may want to offer an option to update the already modified
entries on a case by case basis.
Summary

2 tables

RecurringAppoin tment - details of the recurring appointments

Appointment - Holds all the appointment details, a modified flag and a
FK to the RecurringAppoin tment table
Modified is an optimization idea and may not be
neccessary (or even a good idea - still whiteboarding all this)
When a Recurring Appointment is created
Add one entry recurring and n entries to appointment

Modify an instance
Modify entry in appoinrment, update the modified flag

Modify all
Modify all entries with the specific FK - don't update modified
flag
for each appointment with the modified flag set, query whether to
update the value. Offer a yes/no to all option

Delete Instance
delete entry from appointment table

Delete all
Delete entry from recurring
Delete all entries (including modified) from appointments (or offer
choice for each modified - depends on reqs)

As I said, I am working on the same type of problem so I would be very
interested in comments on the above and/or any suggestions people may
have.

Thanks,
Alan.

Nov 21 '05 #2

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

Similar topics

0
357
by: Pramod | last post by:
Experts I am also trying to create appointments for Outlook users on a specific Day and time. I was told you can't create appointments for others (but only for the user who is logged on). Is there a way to Create Appointments for everyone i.e. managers, other users through .NET application.
5
3893
by: Shabam | last post by:
I'm having a calendar feature developed whereby users can add recurring events. These recurring events can have start and end dates, meaning they will recur only within a date range. For instance, user A creates an event that recurs every Tuesday, from 1/1/05 - 3/2/06. The developer has decided that it would be good to have another table that stores each individual recurring event in a separate record. His logic is that this will help...
5
4069
by: gil | last post by:
I initially tried building a coded system where numbers 1 through 10 referenced a certain type of recurring appointment, and would then call a specific function for each, but as more appointments were added things began to slow down quite a bit. I've taken a different approach since, and decided to create a single record for each recurring appointment, but this has problems as well due to the fact that I have to search each time slot going...
1
1744
by: VB Programmer | last post by:
Here's the scenario: 3 different pcs in a doctors office. 2 doctors with 2 seperate appointment calendars. All 3 pcs need to be able to see, real time, both doctors calendars and add, remove, edit appointments. Any suggestions on how to do this? I was thinking of a web based solution where all appointments are kept on 1 pc using outlook. This pc auto-publishes the current calendar regularly to a website. When users add, edit,...
16
6200
by: Kosmos | last post by:
Good afternoon everyone, just wondering if anyone knew if it's possible to send meetings or appointments through email when you run VBA or SQL code in Access 2003? The following is the code I've been using which sends If you want to see the above code in its full context you can see it here: http://www.thescripts.com/forum/thread581521.html Willakawill helped me out a bit with getting access to remember if it had already added the...
1
7955
by: keri | last post by:
Hi everyone, After numerous failed attempts at this I am now trying again to solve this problem. I really would appreciate ANY help as I have been stumped with this for weeks and weeks! I have a form (frmappointments) through which I create an appointment item in my outlook calendar, (and save the appointment to tblappointments in my database). The appid in my table is set to match the entryid of the outlook appointment item, using...
0
1532
by: Stephen B. Burris Jr. | last post by:
In my database I need to keep the offices calendar up to date with the current information that my database is tracking. To do this I am entering events as appointments. Entering them into outlook is not a problem. The problem comes from when I want to mass delete appointments. When I try to mass delete all the appointments from a specific date to a specific date not all of the appointments are deleted When I try this: For Each...
1
1649
by: TC | last post by:
Hi, I have an app that is going to require recurring diary entries, it's a relatively simple app but I have no idea how to go about the recurring entry side of things. The functionality needs to be similar to outlook in the way the recurring entries work, but the system will be built around a MySql database and I don' want to add thousands of records, although each recurring entry could contain different information. Any ideas would...
0
1728
by: =?Utf-8?B?TWVlbWEgSnVkeQ==?= | last post by:
I have a Verizon Palm Treo 755p and use Outlook 2002 on my new HP Pavilion (Vista 64-bit). When I was syncing on my old XP PC, everything worked fine. On the Vista PC, when I finally got it to sync (using a Bluetooth USB adapter), I ended up with recurring appointments that act wierd when I try to delete, move or edit them. It won't allow any of these changes, saying various messages: 1) If I try to open the recurring appointment: ...
0
9579
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...
1
9979
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
8861
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...
1
7393
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6661
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5293
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...
0
5433
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3948
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
2810
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.