Matching an Indivual then determing if conflicting date

jabaker54

Registered User.
Local time
, 17:14
Joined
Jul 30, 2014
Messages
11
Hello All,

I have a database with two tables. One with a schedule that lists all of the events with the person assigned to, with there start date and end date in separate columns.

My second table lists a persons leave. So I have there name and the start and end date of their leave in separate columns.


Is there a form/query I can create using VBA that will allow me to filter out all the criteria that has the same name and then a date that conflicts between the event date and the leave date.

for example,

If Name(in table 1 ) = Name (in table 2)

(if false stop)

AND,

If StartDate (from table 1) and EndDate (from table1) conflicts with StartDate (from table 2)and EndDate (from Table 2)

(if false stop)

If true I want either the query to register it OR have a form appear to show the conflicting entries.




Thanks!!
 

Users who are viewing this thread

Back
Top Bottom