How to refresh main form from subform

abidshahzad4u

Registered User.
Local time
Today, 13:19
Joined
Aug 17, 2009
Messages
15
Hi

I have a tree view control on the main form. And the related data to the tree view control is displayed on subform from a table. When I add new record/node to the table from subform, it is not reflected on the tree view control.

How can I refresh the main form contents specially tree view control?
 
This link should help you get the correct syntax for referencing Forms/SubForms and their controls and properties.
 
Last edited:
Thanks for the reply

I have to re-populate the tree view control and don't know how to?

Actually I'm web developer and never worked before in VBA.

regards
 
I must admit I have never used a treeview control myself. However what I have read in my (recent, just now) research into the subject has piqued my curiosity :)
 
Quite interesting :) Stephen Hill have done good job.
Let me drill down the blog

Thanks John ;)
 
Hi

I have a tree view control on the main form. And the related data to the tree view control is displayed on subform from a table. When I add new record/node to the table from subform, it is not reflected on the tree view control.

How can I refresh the main form contents specially tree view control?

From what I have managed to glean on the subject, I believe that you will first need to requery the Record Set behind your Tree View control, and then call the function that you are using to fill the Tree View control.
 

Users who are viewing this thread

Back
Top Bottom