I have a treeview with three levels. The primary keys in the tables is used as unique keys for the nodes in the tree.
My whole tree is a modified version of Helen Feddema's example, which can be found here.
In this example the tree is connected to a subform, so that you can use the tree as a record selector.
In my previous thread, MajP talked about getting error when using only numeric keys. Therefore I added an "A" first in the unique key, like this:
Now to the problem:
In order to get the subform to understand what record I'm talking about, the unique key from level 3 is passed over to it. The only problem is that the key contains an "A" e.g. A234 or A933.
All I need to fix this problem is simply a line of code that takes away the "A" in the key(or maybe replaces it with a 0).
I talked to a friend of mine that knows how to do this in C++, but this unfortunately not in vb.
So, any suggestions?
Thanks!
My whole tree is a modified version of Helen Feddema's example, which can be found here.
In this example the tree is connected to a subform, so that you can use the tree as a record selector.
In my previous thread, MajP talked about getting error when using only numeric keys. Therefore I added an "A" first in the unique key, like this:
Code:
strNodeTestText = rst3![[B]Primary key[/B]]
.Nodes.Add relative:=strNode2Text, relationship:=tvwChild, Key:="A" & strNodeTestText, Text:=strVisibleText
Now to the problem:
In order to get the subform to understand what record I'm talking about, the unique key from level 3 is passed over to it. The only problem is that the key contains an "A" e.g. A234 or A933.
All I need to fix this problem is simply a line of code that takes away the "A" in the key(or maybe replaces it with a 0).
I talked to a friend of mine that knows how to do this in C++, but this unfortunately not in vb.
So, any suggestions?
Thanks!