Scorez2000
Programmer
Hi,
I've started developing my new discussion board, nut I am having trouble ordering the list of topics.
It's all very simple so far. I have 3 tables (users, threads and replies).
The thread table contains the title of the thread, the contents of the first post and the date and time of the post.
Then the replies table has all the replies to that thread.
Here is a screenshot of my query so far:
The thing is, if I order by the date and time in the thread table, then threads will not 'bump' to the top when someone posts in them.
I cannot sort by the field in the replies folder either as it will have some blank fields in the records that are actually the first post.
Does anyone know how to create a query that will output the username and name of the thread, and order them by the date of the last reply in each thread?
Thanks in advance,
Wayne.
I've started developing my new discussion board, nut I am having trouble ordering the list of topics.
It's all very simple so far. I have 3 tables (users, threads and replies).
The thread table contains the title of the thread, the contents of the first post and the date and time of the post.
Then the replies table has all the replies to that thread.
Here is a screenshot of my query so far:
The thing is, if I order by the date and time in the thread table, then threads will not 'bump' to the top when someone posts in them.
I cannot sort by the field in the replies folder either as it will have some blank fields in the records that are actually the first post.
Does anyone know how to create a query that will output the username and name of the thread, and order them by the date of the last reply in each thread?
Thanks in advance,
Wayne.