barrykellett
Programmer
I am making a simple guestbook using an access database and have two tables, one with the thread title and one with all the thread replies.
I use this SQL to create a table of thread titles:
SELECT thread.threadid, thread.Title, thread.threaddate, guestbook.username, guestbook.ID
FROM guestbook INNER JOIN thread ON guestbook.threadid = thread.threadid
WHERE (((guestbook.Original)<>True))
ORDER BY thread.threadid DESC;
I need to ammend this sql so that the table this SQL outputs creates a count column every time it runs. (This will be to Count all replies with the same thread id as the title thread key)
Thanks.
BK
I use this SQL to create a table of thread titles:
SELECT thread.threadid, thread.Title, thread.threaddate, guestbook.username, guestbook.ID
FROM guestbook INNER JOIN thread ON guestbook.threadid = thread.threadid
WHERE (((guestbook.Original)<>True))
ORDER BY thread.threadid DESC;
I need to ammend this sql so that the table this SQL outputs creates a count column every time it runs. (This will be to Count all replies with the same thread id as the title thread key)
Thanks.
BK