Karl Blessing
Programmer
I have a table in Access, and I want to figure out how I could in VBscript recursivly go through the table, steps are checking the HParents and LParents for 0,0 then under the first one, find all children, and for each childeren find under that as well like below should return something like:<br><br><FONT FACE=monospace><br>ID1¦HID¦ID¦Name¦Type ¦Val ¦Label ¦HParent¦LParent<br>------------------------------------------------------------<br>7 ¦1 ¦Labor ¦Check¦Labor¦Labor ¦0 ¦0<br>7 ¦2 ¦LFD ¦Check¦LFD ¦Labor Force Data¦7 ¦1<br>7 ¦3 ¦LFDS ¦Check¦LFDS ¦State ¦7 ¦2<br>7 ¦4 ¦LFDN ¦Check¦LFDN ¦National ¦7 ¦2<br>7 ¦5 ¦LCD ¦Check¦LCD ¦Labor Cost Data ¦7 ¦1<br>7 ¦6 ¦LCDW ¦Check¦LCDW ¦Wages ¦7 ¦5<br>7 ¦7 ¦LCDE ¦Check¦LCDE ¦Employment ¦7 ¦5<br>7 ¦8 ¦LCDWR ¦Check¦LCDWR¦Wage Ratios ¦7 ¦5<br></font><br><br>into:<br><br><FONT FACE=monospace><br>...<br><input type="check" name="Labor"> Labor </input><br> <input type="check" name="LFD"> Labor Force Data </Input><br> <input type="check" name="LFDS"> State </input><br> <input type="check" name="LFDS"> National </input><br> <input type="check" name="LCD"> Labor Cost Data </input><br> <input type="check" name="LCDW"> Wages </input><br> <input type="check" name="LCDE"> Employment </input><br> <input type="check" name="LCDWR"> Wage Ratios </input><br>...<br></font><br><br>of cource the actual output, may be in tables, forms, etc to make it into a treelike (or if its IE only, into like a pulldown) but I need something to rescursivly go through , and spit out from top to bottom, at the most it might use 4 recordsets on a stack at a time I would think (rescursive is calling itself right?)<br><br>any help is appreciated. <p>Karl<br><a href=mailto:kb244@kb244.8m.com>kb244@kb244.8m.com</a><br><a href= </a><br>Experienced in : C++(both VC++ and Borland),VB1(dos) thru VB6, Delphi 3 pro, HTML, Visual InterDev 6(ASP(WebProgramming/Vbscript)<br>