Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Record Count

Status
Not open for further replies.

Silvinho

Programmer
Jul 9, 2001
58
GB
Ive created a messageborard with a MS Access table called Subject and a Table called messages. Ive created a Query that counts the number of messages per subject:

SELECT DISTINCTROW messages.SubjectID, Count(*) AS [Count]
FROM messages
GROUP BY messages.SubjectID;

How do i link this to the subjects page to give the total number of posts per subject. All that happens is the recordset just gives the first number in the list. i need to link the SubjectID somehow.

can anyone help?
 
Try:

If rs holds your recordset object then:

rs.MoveLast
rs.RecordCount
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top