473,508 Members | 2,445 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Date Overlap Challenge

HI;

I have a table where the user is entering data which shows scheduling for member of teams.
One problem we have encountered is that sometimes the inputter (is this a word) puts in
dates for an individual that overlap, creating all sorts of problems. One record is
entered for each scheduled event (each one is a day in length or more), so that an
individual will have multiple events on the table.

For the purposes of this question, assume there are 4 fields (there are really many more):

Associate
Activity
start date
end date
(start and end date can be the same).

Does anyone know of a write up on an easy way to detect these overlaps and produce a
report listing them?

Any pointers would be most helpful. I know i ran into something on the web last month that
appeared to do this, but have totally lost the reference to it.

Regards

John Baker
Nov 12 '05 #1
2 4783
On Wed, 04 Feb 2004 11:43:52 GMT, John Baker <Ba******@Verizon.net>
wrote:

That report would be empty. Because you should perform the check when
the data is entered, and not allow overlapping dates.
You can run a number of queries to find the count of records that have
date ranges overlapping with the proposed start date, and similarly (a
parameter query comes to mind!) with the proposed end date. If the
count is > 0, you show a messagebox "No double entry!" and set Cancel
to True (BeforeUpdate event).

-Tom.
HI;

I have a table where the user is entering data which shows scheduling for member of teams.
One problem we have encountered is that sometimes the inputter (is this a word) puts in
dates for an individual that overlap, creating all sorts of problems. One record is
entered for each scheduled event (each one is a day in length or more), so that an
individual will have multiple events on the table.

For the purposes of this question, assume there are 4 fields (there are really many more):

Associate
Activity
start date
end date
(start and end date can be the same).

Does anyone know of a write up on an easy way to detect these overlaps and produce a
report listing them?

Any pointers would be most helpful. I know i ran into something on the web last month that
appeared to do this, but have totally lost the reference to it.

Regards

John Baker


Nov 12 '05 #2
Tom:

The snag is that there are some situations where overlap is acceptable (I wont go into
details), and what we need is a human review of all duplicates, with identification of
those that are acceptable. Hence, I need to list all overlaps, and then have someone check
them out.

Any help much appreciated.

Regards

John Baker

Tom van Stiphout <to*****@no.spam.cox.net> wrote:
On Wed, 04 Feb 2004 11:43:52 GMT, John Baker <Ba******@Verizon.net>
wrote:

That report would be empty. Because you should perform the check when
the data is entered, and not allow overlapping dates.
You can run a number of queries to find the count of records that have
date ranges overlapping with the proposed start date, and similarly (a
parameter query comes to mind!) with the proposed end date. If the
count is > 0, you show a messagebox "No double entry!" and set Cancel
to True (BeforeUpdate event).

-Tom.
HI;

I have a table where the user is entering data which shows scheduling for member of teams.
One problem we have encountered is that sometimes the inputter (is this a word) puts in
dates for an individual that overlap, creating all sorts of problems. One record is
entered for each scheduled event (each one is a day in length or more), so that an
individual will have multiple events on the table.

For the purposes of this question, assume there are 4 fields (there are really many more):

Associate
Activity
start date
end date
(start and end date can be the same).

Does anyone know of a write up on an easy way to detect these overlaps and produce a
report listing them?

Any pointers would be most helpful. I know i ran into something on the web last month that
appeared to do this, but have totally lost the reference to it.

Regards

John Baker


Nov 12 '05 #3

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

Similar topics

0
1455
by: Chris Q. | last post by:
I am creating a custom control that contains a list view with dates and times. I need to make sure that times do not overlap. I would like the control to determine if the overlap is occuring with the...
3
1272
by: nephish | last post by:
Hey there, i am doing a plotting application. i am using mxRelativeDateTimeDiff to get how much time is between date x and date y now what i need to do is divide that time by 20 to get 20 even...
3
11569
by: Lyn | last post by:
Hi, I am developing a project in which I am checking for records with overlapping start/end dates. Record dates must not overlap date of birth, date of death, be in the future, and must not...
5
4543
by: Chris Beall | last post by:
Objective: Using an HTML list, create a horizontal nav menu with these characteristics: - All menu items have the same width at all times. - When the window width is reduced, the menu items...
0
1201
by: Richard Jones | last post by:
The date for the second PyWeek challenge has been set: Sunday 26th March to Sunday 2nd April (00:00UTC to 00:00UTC). The PyWeek challenge invites entrants to write a game in one week from...
0
1222
by: richard | last post by:
The date for the second PyWeek challenge has been set: Sunday 26th March to Sunday 2nd April (00:00UTC to 00:00UTC). The PyWeek challenge invites entrants to write a game in one week from...
67
7600
by: PC Datasheet | last post by:
Transaction data is given with date ranges: Beginning End 4/1/06 4/4/06 4/7/06 4/11/06 4/14/06 4/17/06 4/18/06 4/21/06 426/06 ...
10
2865
by: pyotr | last post by:
Simply my problem is: I need to validate the StartDate and EndDate when entered for an employee through subform. the purpose is to avoid entering a date that violate or overlap date intervalS that...
3
2314
by: Deano | last post by:
The short version; In short, given one date range (start and end dates) how can I find the period that overlaps with another date range? The long version; I have knocked up a little application...
0
7223
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
7114
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
7321
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,...
1
7034
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...
1
5045
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
4702
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
3191
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
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1544
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 ...

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.