Dear David:
I reproduce your queries here, simplified and formatted to my preferences:
SELECT ID, New, [SR #], Type, Area, [Sub Area],
Status, Substatus, [Last Name & SSN], [Last Name],
[First Name], [Social Security #], Facility, Owner,
Source, Resolution, Summary, [Billing Station],
[Facility VISN], Opened, Closed, [Date Assigned],
[Created By], [Date Modified], [First Closed Date], Organization
FROM Output_MAR_2006;
SELECT ID, New, [SR #], Type, Area, [Sub Area],
Status, Substatus, [Last Name & SSN], [Last Name],
[First Name], [Social Security #], Facility, Owner,
Source, Resolution, Summary, [Billing Station],
[Facility VISN], Opened, Closed, [Date Assigned],
[Created By], [Date Modified], [First Closed Date], Organization
FROM Output_FEB_2006;
You said:
"For one field in each table (Facility VISN) I want to combine to run a
report to find out the trend. The field is a number field, and in the report
I need to count a certian number of records which equal (22) and compare it
against FEB records which equal (22)."
What does it mean "count a certain number of records which equal (22)"?
Please explain and give an example.
Tom Ellison
March 2006
SELECT Output_MAR_2006.ID, Output_MAR_2006.New, Output_MAR_2006.[SR #],
Output_MAR_2006.Type, Output_MAR_2006.Area, Output_MAR_2006.[Sub Area],
Output_MAR_2006.Status, Output_MAR_2006.Substatus,
Output_MAR_2006.[Last Name & SSN], Output_MAR_2006.[Last Name],
Output_MAR_2006.[First Name], Output_MAR_2006.[Social Security #],
Output_MAR_2006.Facility, Output_MAR_2006.Owner,
Output_MAR_2006.Source, Output_MAR_2006.Resolution,
Output_MAR_2006.Summary, Output_MAR_2006.[Billing Station],
Output_MAR_2006.[Facility VISN], Output_MAR_2006.Opened,
Output_MAR_2006.Closed, Output_MAR_2006.[Date Assigned],
Output_MAR_2006.[Created By], Output_MAR_2006.[Date Modified],
Output_MAR_2006.[First Closed Date], Output_MAR_2006.Organization
FROM Output_MAR_2006;
Query from the one above to get only records that have the Type of FP
(Below is the one I am trying to combine with the other one that is
below for Feb.) This one has 107,217 records.
SELECT *
FROM [Output_MAR_2006 Query]
WHERE ((([Output_MAR_2006 Query].Type)="FP"));
Febraury 2006
SELECT Output_FEB_2006.ID, Output_FEB_2006.New, Output_FEB_2006.[SR #],
Output_FEB_2006.Type, Output_FEB_2006.Area, Output_FEB_2006.[Sub Area],
Output_FEB_2006.Status, Output_FEB_2006.Substatus,
Output_FEB_2006.[Last Name & SSN], Output_FEB_2006.[Last Name],
Output_FEB_2006.[First Name], Output_FEB_2006.[Social Security #],
Output_FEB_2006.Facility, Output_FEB_2006.Owner,
Output_FEB_2006.Source, Output_FEB_2006.Resolution,
Output_FEB_2006.Summary, Output_FEB_2006.[Billing Station],
Output_FEB_2006.[Facility VISN], Output_FEB_2006.Opened,
Output_FEB_2006.Closed, Output_FEB_2006.[Date Assigned],
Output_FEB_2006.[Created By], Output_FEB_2006.[Date Modified],
Output_FEB_2006.[First Closed Date], Output_FEB_2006.Organization
FROM Output_FEB_2006;
Query from the one above to get only records that have the Type of FP.
This one has 20,408 records.
SELECT *
FROM [Output_FEB_2006 Query]
WHERE ((([Output_FEB_2006 Query].Type)="FP"));