November 10th, 2004, 8:29 am
OK, I've got in working with the following:1. Changed the sourcefile location to ThisWorkbook.Path & "\Data (petty I know)2. Dim 'ed objTree as an object (there's probably a better way but I'm lazy)3. Added an rs.MoveFirst before each rs.FindFirst in AddChildren4. changed the FindFirst to this : rs.FindFirst "[ReportsTo] ='" & Mid(Replace(nodBoss.Key, "'", "''"), 2) & "'"which means a) I've wrapped the criteria in single quotes, and b) doubled up any single quotes. Haven't tested the second bit, but not doing it means you'll run into trouble on O'Baoill5. Changed the FindNext in the same wayWorks fine, now