I&#039ve got a jscript multi-threaded forum I&#039m working on and I can&#039t seem to get the code right.<BR><BR>If anyone has any ideas I&#039d be most grateful...<BR><BR>Here is a run down of the fields...<BR>ID = Unique message ID<BR>ThreadID = Thread ID<BR>PrevRef = Reference to Parent ID (0 if it&#039s the top level thread)<BR>Msglevel = Level of thread<BR>ThreadPos = Position of a message within a thread<BR><BR>Is there a SQL statement that can pull these in correctly as a threaded tree or does it have to be done in the code?<BR><BR>Thanks for any help,<BR>matt