Function GetSonID(ParentID)
G_sql = "Select * From select_Class Where ParentID = " & int(ParentID)
Set Srs = Easp
If Not Srs
While Not Srs
GetSonID = GetSonID & "
Srs
Wend
End IF
Easp
End Function
From:http://tw.wingwit.com/Article/program/net/201311/14387.html