Here is the fix
Public Sub RecurseIGTree(Optional ByVal ParentID As Variant = Null, Optional RS As dao.Recordset = Nothing, Optional ByVal Path As String = "")
'This assigns the levels and tree sort
'if the top level parent ID is null do not pass in anything
Dim strCriteria As String...