L
lmv
I'm trying to display the ttl # of records in each TID on a form in a txt box
only to view #.
If I add the "query q_TID_TTL" to my forms record source then it locks the
form and my ck boxes won't work but it displays the info.
I don't know if it should be Dcount or Dlookup.
I can't remember how to tie it to the Forms list of TIDs which are
displaying in a continous form.
It is repeating just the 1st # in the query list and not the Forms list
=DLookUp("TTL","q_TID_TTL","[TID]")
'========
SELECT tblArea.Area123, TerritoryNumbers.TID, tblArea.AreaName,
Count(TerritoryNumbers.TID) AS Ttl
FROM (TerritoryNumbers INNER JOIN tblArea ON TerritoryNumbers.Area =
tblArea.AreaID) INNER JOIN [Name List] ON TerritoryNumbers.TID = [Name
List].TID
GROUP BY tblArea.Area123, TerritoryNumbers.TID, tblArea.AreaName
HAVING (((TerritoryNumbers.TID) Not Like "Inactive" And
(TerritoryNumbers.TID)<>"Moved" And (TerritoryNumbers.TID)<>"Pending" And
(TerritoryNumbers.TID)<>"x-Eng" And (TerritoryNumbers.TID) Is Not Null))
ORDER BY tblArea.Area123, tblArea.AreaName;
'========
Please help...Thanks!
only to view #.
If I add the "query q_TID_TTL" to my forms record source then it locks the
form and my ck boxes won't work but it displays the info.
I don't know if it should be Dcount or Dlookup.
I can't remember how to tie it to the Forms list of TIDs which are
displaying in a continous form.
It is repeating just the 1st # in the query list and not the Forms list
=DLookUp("TTL","q_TID_TTL","[TID]")
'========
SELECT tblArea.Area123, TerritoryNumbers.TID, tblArea.AreaName,
Count(TerritoryNumbers.TID) AS Ttl
FROM (TerritoryNumbers INNER JOIN tblArea ON TerritoryNumbers.Area =
tblArea.AreaID) INNER JOIN [Name List] ON TerritoryNumbers.TID = [Name
List].TID
GROUP BY tblArea.Area123, TerritoryNumbers.TID, tblArea.AreaName
HAVING (((TerritoryNumbers.TID) Not Like "Inactive" And
(TerritoryNumbers.TID)<>"Moved" And (TerritoryNumbers.TID)<>"Pending" And
(TerritoryNumbers.TID)<>"x-Eng" And (TerritoryNumbers.TID) Is Not Null))
ORDER BY tblArea.Area123, tblArea.AreaName;
'========
Please help...Thanks!