Heres one that should return all of the information grouped similar to what you had above:
SQLtxt = "SELECT COUNT(Name) as numEntries, AssetType FROM tablename GROUP BY AssetType ORDER BY AssetType"
That will return a recordset that looks like:
2 Monitor
2 Server
etc...
-Tarwn "If you eat a live toad first thing in the morning, nothing worse will happen all day long." - California saying
"To you or the toad" - Niven's restatement of California saying
"-well most of the time anyway..." - programmers caveat to Niven's restatement of California saying
(The Wiz Biz - Ri