473,395 Members | 1,452 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,395 software developers and data experts.

Recurring Events

I am working on a database project that supports reoccurring
events very similar to those seen in Microsoft Outlook. I was doing
some research on the best way to do this and came across Allen
Browne's sample database (http://allenbrowne.com/AppRecur.html). I am
wowed by the simplicity and elegance of Allen's approach. However, I
need to support more flexible recurrence, such as a job taking place
on the last day of the month. Is anyone familiar with Allen's sample
database? If so, do they have any ideas on how this type of
recurrence could be implemented without totally screwing up Allen's
elegant approach? Thanks.

Vincent
Oct 16 '08 #1
4 6520
Not sure there's a simple answer to your question, Vincent.

As the article states, it's really an example of how to approach it. How to
extend it will depend what else you need to achieve.

With regard to your specific example perhaps you could add an Offset field
(type Number.) You could then have a recurring event for the first of the
month, minus 1.

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Vincent" <an**********@verizon.netwrote in message
news:05**********************************@i76g2000 hsf.googlegroups.com...
I am working on a database project that supports reoccurring
events very similar to those seen in Microsoft Outlook. I was doing
some research on the best way to do this and came across Allen
Browne's sample database (http://allenbrowne.com/AppRecur.html). I am
wowed by the simplicity and elegance of Allen's approach. However, I
need to support more flexible recurrence, such as a job taking place
on the last day of the month. Is anyone familiar with Allen's sample
database? If so, do they have any ideas on how this type of
recurrence could be implemented without totally screwing up Allen's
elegant approach? Thanks.

Vincent
Oct 19 '08 #2
On Oct 19, 10:52*am, "Allen Browne" <AllenBro...@SeeSig.Invalid>
wrote:
Not sure there's a simple answer to your question, Vincent.

As the article states, it's really an example of how to approach it. How to
extend it will depend what else you need to achieve.

With regard to your specific example perhaps you could add an Offset field
(type Number.) You could then have a recurring event for the first of the
month, minus 1.

--
Allen Browne - Microsoft MVP. *Perth, Western Australia
Tips for Access users -http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Vincent" <animedrea...@verizon.netwrote in message

news:05**********************************@i76g2000 hsf.googlegroups.com...
* * I am working on a database project that supports reoccurring
events very similar to those seen in Microsoft Outlook. *I was doing
some research on the best way to do this and came across Allen
Browne's sample database (http://allenbrowne.com/AppRecur.html). *I am
wowed by the simplicity and elegance of Allen's approach. *However, I
need to support more flexible recurrence, such as a job taking place
on the last day of the month. *Is anyone familiar with Allen's sample
database? *If so, do they have any ideas on how this type of
recurrence could be implemented without totally screwing up Allen's
elegant approach? *Thanks.
Vincent
Allen,

I have found a solution, of sorts, to the above issue. Now I am
dealing with an issue of scale. For example, in the application I am
utilizing this in, it would not be uncommon for a customer to have
over 1000 revolving service records in the database. If I have 1000
records in the "tblCount" table, and all of the revolving service is
infinite (no recurrence count specified), then the cartesian query
will generate 1,000,000 (1,000 * 1,000) or more records. Is there a
good way to limit the number of records that are generated by this
query (short of reducing the number of records in the "tblCount"
table)? Again, I'm not sure if there is a good answer.... Thanks.

Vincent
Oct 31 '08 #3
The cartesian will generate a million records for the example you give. It
may still run in only a few seconds: try it.

You might need a temporary table if you want to do lots of further
processing of the results.

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Vincent" <an**********@verizon.netwrote in message
news:dd**********************************@e38g2000 prn.googlegroups.com...
On Oct 19, 10:52 am, "Allen Browne" <AllenBro...@SeeSig.Invalid>
wrote:
Not sure there's a simple answer to your question, Vincent.

As the article states, it's really an example of how to approach it. How
to
extend it will depend what else you need to achieve.

With regard to your specific example perhaps you could add an Offset field
(type Number.) You could then have a recurring event for the first of the
month, minus 1.

"Vincent" <animedrea...@verizon.netwrote in message

news:05**********************************@i76g2000 hsf.googlegroups.com...
I am working on a database project that supports reoccurring
events very similar to those seen in Microsoft Outlook. I was doing
some research on the best way to do this and came across Allen
Browne's sample database (http://allenbrowne.com/AppRecur.html). I am
wowed by the simplicity and elegance of Allen's approach. However, I
need to support more flexible recurrence, such as a job taking place
on the last day of the month. Is anyone familiar with Allen's sample
database? If so, do they have any ideas on how this type of
recurrence could be implemented without totally screwing up Allen's
elegant approach? Thanks.
Vincent
Allen,

I have found a solution, of sorts, to the above issue. Now I am
dealing with an issue of scale. For example, in the application I am
utilizing this in, it would not be uncommon for a customer to have
over 1000 revolving service records in the database. If I have 1000
records in the "tblCount" table, and all of the revolving service is
infinite (no recurrence count specified), then the cartesian query
will generate 1,000,000 (1,000 * 1,000) or more records. Is there a
good way to limit the number of records that are generated by this
query (short of reducing the number of records in the "tblCount"
table)? Again, I'm not sure if there is a good answer.... Thanks.

Vincent

Nov 1 '08 #4
On Oct 31, 10:04*pm, "Allen Browne" <AllenBro...@SeeSig.Invalid>
wrote:
The cartesian will generate a million records for the example you give. It
may still run in only a few seconds: try it.

You might need a temporary table if you want to do lots of further
processing of the results.

--
Allen Browne - Microsoft MVP. *Perth, Western Australia
Tips for Access users -http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Vincent" <animedrea...@verizon.netwrote in message

news:dd**********************************@e38g2000 prn.googlegroups.com...
On Oct 19, 10:52 am, "Allen Browne" <AllenBro...@SeeSig.Invalid>
wrote:
Not sure there's a simple answer to your question, Vincent.
As the article states, it's really an example of how to approach it. How
to
extend it will depend what else you need to achieve.
With regard to your specific example perhaps you could add an Offset field
(type Number.) You could then have a recurring event for the first of the
month, minus 1.
"Vincent" <animedrea...@verizon.netwrote in message
news:05**********************************@i76g2000 hsf.googlegroups.com....
I am working on a database project that supports reoccurring
events very similar to those seen in Microsoft Outlook. I was doing
some research on the best way to do this and came across Allen
Browne's sample database (http://allenbrowne.com/AppRecur.html). I am
wowed by the simplicity and elegance of Allen's approach. However, I
need to support more flexible recurrence, such as a job taking place
on the last day of the month. Is anyone familiar with Allen's sample
database? If so, do they have any ideas on how this type of
recurrence could be implemented without totally screwing up Allen's
elegant approach? Thanks.
Vincent

Allen,

* * *I have found a solution, of sorts, to the above issue. *Now I am
dealing with an issue of scale. *For example, in the application I am
utilizing this in, it would not be uncommon for a customer to have
over 1000 revolving service records in the database. *If I have 1000
records in the "tblCount" table, and all of the revolving service is
infinite (no recurrence count specified), then the cartesian query
will generate 1,000,000 (1,000 * 1,000) or more records. *Is there a
good way to limit the number of records that are generated by this
query (short of reducing the number of records in the "tblCount"
table)? *Again, I'm not sure if there is a good answer.... *Thanks.

Vincent
Ok, I'll try running it. Thanks again for coming up with a great
solution to doing recurrence!

Vincent
Nov 3 '08 #5

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

Similar topics

5
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...
5
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...
1
by: steve | last post by:
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...
2
by: matthias | last post by:
I am creating a database which is supposed to contain many data entries (events) that differ only in the date they occur. So let's say event 1 occurs every Monday, Tuesday and Sunday between...
2
by: nepdae | last post by:
Please forgive me, this is a long one. My 11-user Access 2000 database is having recurring corruption problems. The symptoms include the following: 1) corrupted fields in recently created or...
1
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...
0
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...
2
by: Kshetra | last post by:
Hi All, I wanted to know more about how monthly recurring of payments is done through paypal.I need to integrate payments through paypal in my application such that No where I will track the...
9
by: Ross | last post by:
I'm a newbie at this, and have searched a lot but can't find something that seems appropriate for measuring a recurring elapsed time. Creating an object with: var mydate = new Date(); seems...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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:
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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
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...

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.