ClaraBarton
Registered User.
- Local time
- Today, 14:47
- Joined
- Oct 14, 2019
- Messages
- 726
@MajP
When loading the treeview it completes but breaks at the last record
The error is error 91 object variable on parent.index
The same error is on closing at
in UpdateSortandLevel
I'm only using a small testing db but it always breaks at the last node.index (15)
is there a problem in my tables?
When loading the treeview it completes but breaks at the last record
Code:
Private Function FindRoot(ByVal nodX As Node, tvw As TreeView) As Node
On Error GoTo ErrHandler
Dim n As Integer
n = nodX.Index
Debug.Print nodX.Index
While n <> nodX.Root.Index
n = tvw.Nodes(n).Parent.Index
Wend
ErrHandler:
Set FindRoot = tvw.Nodes(n)
End Function
The error is error 91 object variable on parent.index
The same error is on closing at
Code:
For Each nd In tvw.TreeView.Nodes
I'm only using a small testing db but it always breaks at the last node.index (15)
is there a problem in my tables?