When I add a record to the database I am getting an error message that my key is not unique. It only happens when I add a different classication. I attached the project below as a zip file. I am in the learning phase so my code may be messed up.
Checked out your project and found the problem - and I'd like to thank you for making me realize something I never knew about the treeview.....
1. The problem was you were trying to create an additonal node that had the same key. The keys must be unique. You were passing 'Title', so if you have more than one title that is the same - crasherama!!
2. Keys must be strings
3. What I did not know - I initially tried using your ID field (it will always be unique as you are using Autonumber) - but still it crashed (even when trying to use CSTR to convert it to a string)....so I went to MSDN and saw an example that used the id field. In the example, the field was numeric, but concatenated with a string like " id" to make it a true string
So as you will see from the code, this is what I did, and it now runs. Cheers
"Knowledge is gained when different people look at the same information in different ways"