Here is the Communications data. I will send the DM data seperate.
ROM District Mgr Date Store Number Attempt or Actual Contact Name Title of
Contact Manner of Communications Outcome/Results
Todd Stewart Lee Schenck 2/7/2008 601 Attempt Joe ASM In-person Not
available at this time
Dennis Child Cassaundra Hoch 2/8/2008 4821 Attempt Test SM Email Problem
with DM
Meleah Cayton Brian Athey 2/11/2008 3406 Attempt George DM In-person This is
a test
Meleah Cayton Darryl High 2/11/2008 601 Actual Joe Money MEM In-person Joe
wants more endcaps
Terri Ekstrand Stephen Tillerson 2/12/2008 4702 Actual Homer
Simpson MERM In-person Wants Power Tools reset
Russ Colgin William Hiser 2/12/2008 608 Actual Amy Smart MERM In-person Very
happy with Cosmo service
Meleah Cayton Gary Burt 2/14/2008 424 Actual Joe Depot MERM In-person Joe
had complained about the set of Custom Leathercraft. He wants it in sku order.
Dennis Child Phillip Campbell 2/19/2008 6621 Actual Sivo
Aisabonghi DM In-person TEST-Met w/ Sivo to discuss reset plans
Russ Colgin Tom Odom 2/20/2008 1072 Actual Justin Garris SM Email Wants us
to proceed with reset on our next visit.
Meleah Cayton Gary Burt 2/21/2008 0455 Attempt Tony Hurst DM Email Send
email regading project rain. Reply received with approval and thanks.
Terri Ekstrand Chris Waddell 2/27/2008 4719, 4714, 1803 Attempt Lee
Stocker RMM Email left copies of e-mail of service of project rain at stores
4719, 4714, and 1803.
Todd Stewart Joseph Benedetto 3/1/2008 0673 Actual Carl
Hanes ASM Email Carl, contacted me and asked not to perform any resets until
their inventory has been completed, also requested not to perform any resets
with out his approval
KARL DEWEY said:
That is ok, I can sort it out but you can do a query to pull only the fields
used in your query for the sample.
--
KARL DEWEY
Build a little - Test a little
Richardb said:
Sorry Carl. I am not sure how to get you the sample data becuse there are 9
fields in the Communications Table and 2 Fields in the DM Table. Any
suggestions would be helpfull. When I try to paste the date it all scambles
in the reply box.
Richard
KARL DEWEY said:
I asked for "sample" data, not the complete information. I want to see what
works and what does not. That will entail running your sample data through
my machine to see if I get the same results because my data works.
--
KARL DEWEY
Build a little - Test a little
:
Karl,
The results list would be long since the DM list has 53 people. I could
send the whole DB. It is small since I just created recently.
Richard
:
Your orignal post said "...The unmatched works for all if I do not have the
date filed in the query..."
I just built the table with data and it worked for me. Sample data below
with results --
DM Name
1
2
3
4
5
6
Date District Mgr
1/1/2008 1
2/2/2008 2
1/1/2008 4
2/1/2008 6
DM Name Date
3
5
What did query not do or do wrong?
Post some sample data. Results.
--
KARL DEWEY
Build a little - Test a little
:
I have a date time field. Below did not work.
:
Is your Communications.Date field a DateTime datatype or text field?
Try changing you SQL to this ---
Between CVDate([Start Date]) And CVDate([End Date]) OR Communications.Date
IS NULL;
--
KARL DEWEY
Build a little - Test a little
:
Thanks for the reply. No matter what date I select it still comes up with
the exact same number of people. So it is searching the whole table not just
the date selection.
Richard
:
Try this ---
SELECT DmList.[DM Name], Communications.Date
FROM DmList LEFT JOIN Communications ON DmList.[DM Name] =
Communications.[District Mgr]
WHERE (Communications.[District Mgr]) Is Null AND (Communications.Date)
Between [Start Date] And [End Date] OR Communications.Date IS NULL;
--
KARL DEWEY
Build a little - Test a little
:
I have a query that I am trying to find out who did not submit a report
during a particular time period. The unmatched works for all if I do not have
the date filed in the query. Following is the SQL Statement with the date
field.
SELECT DmList.[DM Name], Communications.Date
FROM DmList LEFT JOIN Communications ON DmList.[DM Name] =
Communications.[District Mgr]
WHERE (((Communications.[District Mgr]) Is Null) AND ((Communications.Date)
Between [Start Date] And [End Date]));
Any help would be appreciated.
Richard