I'll tell you a bit about my idea. My idea is to stick with the continuous form we were editing before this tree, and use this as a control and query, because it gives me a correct file count (once you remove the hidden and system files). In windows explorer, if you try to see the files in a folder, it may give you an "incorrect" value because it counts hidden and system files. What you would need would be a field with the total of files (sum).
What I am going to remove is also the table view subform under the tree. I have that information above, and I don't see much use for it.
The controls that I have indicated in the capture, well look, if they work, well, there they are, and if not, then I don't care.
I just saw that there is a button to read the files, which would be like a button to update and show the new changes in the folder.
The button to clear the table I do not know what to do. It gives me that it is a little irrelevant, because having a button to update and another button, or option to change the route (now I explain it), it does not make sense to have that button there.
As for changing the path, I will use this tree to display two different folders. So, seeing a bit how it is assembled, although for me the code is quite complex and difficult to understand, since I do not get to that much, I think the best thing will be to change the button to change the default folder for an options box where I can choose between three options: one, folder1; two, folder 2; and 3, which opens the dialog you have made to choose a different route.
What I would like is to leave the necessary code for what I am going to use in the database. As I said before, I want to remove Active x because it doesn't work for me. I think tables and queries are the ones they have to be. And forms would have to remove frmActiveX_Tree, frmChoose, subFrmFileFolderCounts, and subTreeView, which I don't know what it's for. As for macros and modules, I don't know what is left over.
Then in VBA there is an empty form, which I don't know if it can be removed.