MS Access 2000
I have created a large treeview control based on lists of parts. The
nodekey for a part consists of a character followed by the parent
part's index. Some of these parts (e.g., screws) will show up many
times in the same relative position in the treeview. How can I avoid
getting duplicate key error messages? Here's a simplified version of
my treeview control:
Widget 1
Frob a
Frob b
Screw 1
Screw 2
Widget 2
Frob b
Screw 1
Screw 2
Widget 3
Frob a
Frob c
Screw 2
Screw 3
I have tried incrementing the character in front of the part's index
each time I call the recursive subroutine to create a new branch, and
it seems to work, but only to the second level of parts (in my sample
above, the "Frobs" are fine, but not the screws).