You can't assign a value to this object

abidshahzad4u

Registered User.
Local time
Tomorrow, 00:35
Joined
Aug 17, 2009
Messages
15
Hi

I'm working on a tree view control. Tree view control is on a form and the related data is opened is a subform present at the same form.

Problem is that when I try to add new record it warns me with:
You can't assign a value to this object

I don't understand why this warning is? I click on OK and all things work fine.

I'm using a single table for populating tree view control and the subform.
 
Always a good idea to clear the Nodes of a tree before adding to it:

Code:
Treeview1.Nodes.Clear

Put that line just before you populate the recordset.
 

Users who are viewing this thread

Back
Top Bottom