You can't assign a value to this object (1 Viewer)

abidshahzad4u

Registered User.
Local time
Today, 13:40
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.
 

vbaInet

AWF VIP
Local time
Today, 09:40
Joined
Jan 22, 2010
Messages
26,374
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

Top Bottom