Hi,
Is it possible to count the rows in a recordset based on a column in another table?
I have one table called Users which has UserID and Department (both are numbers) and I have another table called Messages that has UserID (number) and Message (memo).
Is it possible to execute a query whereby you could count the number of rows where the poster was in a particular deparmtent.
When I display the posts I use
SELECT Messages.UserID, Messages.Message, Users.Department FROM Messages LEFT JOIN Users ON Messages.UserID=Users.UserID
cheers
Is it possible to count the rows in a recordset based on a column in another table?
I have one table called Users which has UserID and Department (both are numbers) and I have another table called Messages that has UserID (number) and Message (memo).
Is it possible to execute a query whereby you could count the number of rows where the poster was in a particular deparmtent.
When I display the posts I use
SELECT Messages.UserID, Messages.Message, Users.Department FROM Messages LEFT JOIN Users ON Messages.UserID=Users.UserID
cheers