Here are the query definitions (they're long...)
I hope you have some suggestions...
TIA,
Fred
Definition For qryCombo
SELECT * FROM qryFull UNION SELECT * FROM qryTemp;
Definitions for qryFull
SELECT dbo_ViewRoster. *, tblRoster.SUPVI D, tblRoster.OFCPH ONE,
tblRoster.CELLP HONE, tblRoster.PAGEP HONE, tblRoster.WkHrs , tblRoster.SQUAD ,
tblRoster.CallS ign, tblRoster.SKILL S, tblRoster.STATU S, tblRoster.GUNMA KE,
tblRoster.GUNMO DEL, tblRoster.GUNSE RIAL, tblRoster.RADIO ,
tblRoster.SPCLE QPT, tblRoster.VEHIC LE, tblRoster.ARANK , tblRoster.NextS quad,
tblRoster.NextW atch, tblRoster.NextD O1, tblRoster.NextD O2,
tblRoster.NextD O3, tblRoster.NextD O4, tblRoster.NextS upvID,
tblRoster.NextC allSign, tblRoster.NextW kHrs, tblRoster.LastE val,
Left([Squad],3) AS SquadRoot, Left([NextSquad],3) AS NextSquadRoot
FROM tblRoster RIGHT JOIN dbo_ViewRoster ON tblRoster.ID = dbo_ViewRoster. ID
WITH OWNERACCESS OPTION;
Definitions For qryTemp
SELECT tblTemp.*, dbo_ViewRoster. LAN, dbo_ViewRoster. LANPermission,
dbo_ViewRoster. LName, dbo_ViewRoster. FName, dbo_ViewRoster. MI,
dbo_ViewRoster. Suffix, dbo_ViewRoster. StNum, dbo_ViewRoster. StName,
dbo_ViewRoster. AptNumber, dbo_ViewRoster. City, dbo_ViewRoster. State,
dbo_ViewRoster. Zip, dbo_ViewRoster. HPhone, dbo_ViewRoster. MAPVolunteer,
dbo_ViewRoster. MStNum, dbo_ViewRoster. MStName, dbo_ViewRoster. MApt,
dbo_ViewRoster. MCity, dbo_ViewRoster. MState, dbo_ViewRoster. MZip,
dbo_ViewRoster. CDLNumber, dbo_ViewRoster. CDLType, dbo_ViewRoster. CDLExpDate,
dbo_ViewRoster. BBadge, dbo_ViewRoster. FBadge, dbo_ViewRoster. Rank,
tblRoster.OFCPH ONE, tblRoster.CELLP HONE, tblRoster.PAGEP HONE,
tblRoster.SKILL S, tblRoster.GUNMA KE, tblRoster.GUNMO DEL,
tblRoster.GUNSE RIAL, tblRoster.RADIO , tblRoster.SPCLE QPT, tblRoster.VEHIC LE,
tblRoster.LastE val, Left([tblTemp.Squad],3) AS SquadRoot,
Left([tblTemp.NextSqu ad],3) AS NextSquadRoot
FROM (tblTemp LEFT JOIN dbo_ViewRoster ON tblTemp.ID = dbo_ViewRoster. ID)
LEFT JOIN tblRoster ON tblTemp.ID = tblRoster.ID
WITH OWNERACCESS OPTION;
*************** *************** *************** *********
"Allen Browne" <ab************ ***@bigpond.net .au> wrote in message
news:GC******** ************@ne ws-server.bigpond. net.au...
More information, please Fred.
Please give an example of the simplest filter that fails, e.g.:
ClientID = 27.
Since you are performing a UNION on other queries, please indicate if the
source fields of the filter are table fields, or calculated fields. If
tables, indicate the field types, e.g.:
tblClient1.Clie ntID = AutoNumber;
tblClient2.Clie ntID = Number (Long)
If calculated fields, indicate the calculations e.g.:
Query1.ClientID : 1 + 2
Query2.ClientID : 2 * 2
We may also need information on the queries: outer joins?
Any information you can glean on which fields are missing?
--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
*************** *************** *************** *********
"Fred Zuckerman" <zu********@sbc global.net> wrote in message
news:2f******** *************** ***@posting.goo gle.com... I have a union query joining two other queries, each with 62 fields.
Interestingly, when I open the query it has the correct number of 2850
records. But if I then set a filter (using filter by form), when I
apply the filter I get only 206 records, when I should get 208. If I
then remove the filter I get 2850 records again. But if I then click
on "apply filter" again I get only 186 records.
Each time I remove the filter I get the correct record count. But when
I reapply the filter I get different counts, never correct and never
the same.
But, if I apply the filter to the original two queries and then
perform the union, then I always get the correct count.
Can anyone explain this?
TIA,
Fred Zuckerman
San Diego, CA, USA