G
Guest
Hi,
I am trying to set up a database to record work sites on roads.
I want to be able to have a warning come up if, when a new record is
entered, it conflicts (location and timing) with another site.
Getting the location conflicts is easy, as a query can be run to filter out
those sites with the same location.
In (SELECT [SH] FROM [Main_table] As Tmp GROUP BY [SH],[RS] HAVING
Count(*)>1 And [RS] = [Main_table].[RS])
However, I would like to be able to have the database tell me, if there IS a
location conflict, will the start date be within the date ranges of other
work sites at the same location. Each record has a start date and end date
field.
This is where I get stuck, how can I get Access to check if one record's
"start date" is between the "start date" and "end date" of all the other
records with conflicting locations?
Any ideas? Or referrals to an existing solution?
Cheers
I am trying to set up a database to record work sites on roads.
I want to be able to have a warning come up if, when a new record is
entered, it conflicts (location and timing) with another site.
Getting the location conflicts is easy, as a query can be run to filter out
those sites with the same location.
In (SELECT [SH] FROM [Main_table] As Tmp GROUP BY [SH],[RS] HAVING
Count(*)>1 And [RS] = [Main_table].[RS])
However, I would like to be able to have the database tell me, if there IS a
location conflict, will the start date be within the date ranges of other
work sites at the same location. Each record has a start date and end date
field.
This is where I get stuck, how can I get Access to check if one record's
"start date" is between the "start date" and "end date" of all the other
records with conflicting locations?
Any ideas? Or referrals to an existing solution?
Cheers