If in your Main Form you dimensioned
Private ItemTreeView as TreeviewForm
Then this will fail because the ItemTreeView is private and cannot be accessed
Set GetItemTreeView = Forms("frmDetail").ItemTreeView
You will need to make it public, or you can add a public Get property to the form.