nodeptr = thisform.oletreeview.selecteditem local childnodeptr childnodeptr = m.nodeptr.child select ckey from treeview into cursor csrtemp where alltrim(ckey)==nodeptr.key use (dbf([csrtemp])) again in 0 alias csrtable select csrtable use in csrtemp do while !isnull(m.childnodeptr) append blank replace ckey with m.childnodeptr.key childnodeptr = m.childnodeptr.next enddoI want my table to look like this,