
Signature
Duane Hookom
MS Access MVP
--
Duane,
My mistake, it is in a report. I can send you the SQL of the repor
record source. it is a query. Do you want that SQL? It is rathe
long. It's a completely different query then my totalpeople query.
Re
--
re
red - 07 Dec 2005 16:31 GMT
Duane,
Here is the query SQL for my report source, hope it make sense.
SELECT tblAdminPersonnel_1.LAST, tblAdminPersonnel_1.FIRST
tblAdminPersonnel_1.CurrentTime, tblRanks.Rank, tblUnits.Squadron
FROM tblRecallTime, tblUnits INNER JOIN (tblRanks INNER JOI
tblAdminPersonnel_1 ON tblRanks.RankID = tblAdminPersonnel_1.RankID) O
tblUnits.UnitID = tblAdminPersonnel_1.SQUAD_ID
WHERE (((tblRanks.Rank)<>"civ") AN
((DateDiff("n",[tblRecallTime.RecallTime],[tblAdminPersonnel_1.CurrentTime]))<60
AND ((tblAdminPersonnel_1.STATUS_ID)=1) AN
((tblAdminPersonnel_1.Archived)=No) AN
((tblAdminPersonnel_1.ReportForDuty)=Yes))
ORDER BY tblUnits.Squadron;
Re
--
re
Duane Hookom - 08 Dec 2005 02:13 GMT
This is your SQL
SELECT
tblAdminPersonnel_1.LAST,
tblAdminPersonnel_1.FIRST,
tblAdminPersonnel_1.CurrentTime,
tblRanks.Rank,
tblUnits.Squadron
FROM tblRecallTime,
tblUnits INNER JOIN
(tblRanks INNER JOIN
tblAdminPersonnel_1
ON tblRanks.RankID = tblAdminPersonnel_1.RankID)
ON tblUnits.UnitID = tblAdminPersonnel_1.SQUAD_ID
WHERE (((tblRanks.Rank)<>"civ") AND
((DateDiff("n",[tblRecallTime.RecallTime],
[tblAdminPersonnel_1.CurrentTime]))<60)
AND ((tblAdminPersonnel_1.STATUS_ID)=1) AND
((tblAdminPersonnel_1.Archived)=No) AND
((tblAdminPersonnel_1.ReportForDuty)=Yes))
ORDER BY tblUnits.Squadron;
I don't see the query/table totalpeople or the field Total. You can't use
the field name without including it in the report's record source.

Signature
Duane Hookom
MS Access MVP
--
> Duane,
> Here is the query SQL for my report source, hope it make sense.
[quoted text clipped - 12 lines]
>
> Red
red - 07 Dec 2005 16:55 GMT
Duane,
I tried to post before but it hasn't came through, now it probably wil
twice :)
Here is the query SQL for my report source, hope it make sense.
SELECT tblAdminPersonnel_1.LAST, tblAdminPersonnel_1.FIRST
tblAdminPersonnel_1.CurrentTime, tblRanks.Rank, tblUnits.Squadron
FROM tblRecallTime, tblUnits INNER JOIN (tblRanks INNER JOI
tblAdminPersonnel_1 ON tblRanks.RankID = tblAdminPersonnel_1.RankID) O
tblUnits.UnitID = tblAdminPersonnel_1.SQUAD_ID
WHERE (((tblRanks.Rank)<>"civ") AN
((DateDiff("n",[tblRecallTime.RecallTime],[tblAdminPersonnel_1.CurrentTime]))<60
AND ((tblAdminPersonnel_1.STATUS_ID)=1) AN
((tblAdminPersonnel_1.Archived)=No) AN
((tblAdminPersonnel_1.ReportForDuty)=Yes))
ORDER BY tblUnits.Squadron;
Re
--
re
red - 08 Dec 2005 09:12 GMT
Duane,
Manyh Thanks for for your help. I was thinking about what you sai
asking for my SQL. Realizing that the query wasn't part of the SQL,
added it and the percentage works fine. Many Thanks Again.
Re
--
re