L
leot
I have a table of salesmen and the contacts they make.
SELECT data.salesmen, data. [first date], data. [last date],
data.locationofcontact
FROM data.salesmen
WHERE (((data. [First Date]) Between [Enter From Date] And [Enter To Date]))
ORDER BY data. [First Date];
Above will get me all contacts made by salesmen for a particular month
(between dates). How can I change the above so that I get all records are
included for contacts in a particular month whether the contacts were
initiated before the First Date or ended after the Last Date?
In other words, the salesman gets credit for contacts initiated before the
first of the month and ending after the last of the month as long as contacts
also occurred during the month in question. I would like a list of all
records of contacts that occurred in a chosen month whether they started
before the month or ended after the month.
Thanks for any help! I am stumped.
SELECT data.salesmen, data. [first date], data. [last date],
data.locationofcontact
FROM data.salesmen
WHERE (((data. [First Date]) Between [Enter From Date] And [Enter To Date]))
ORDER BY data. [First Date];
Above will get me all contacts made by salesmen for a particular month
(between dates). How can I change the above so that I get all records are
included for contacts in a particular month whether the contacts were
initiated before the First Date or ended after the Last Date?
In other words, the salesman gets credit for contacts initiated before the
first of the month and ending after the last of the month as long as contacts
also occurred during the month in question. I would like a list of all
records of contacts that occurred in a chosen month whether they started
before the month or ended after the month.
Thanks for any help! I am stumped.