If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Problem with TreeView on a shared subform
I have a subform that contains a treeview that is populated with tasks and
their followups etc... I want this subform to be placed on a number of parent forms which will invoke a sub on the subform to populate the treeview using a filter based on the value of the main forms entity... ie when on the customers form only show tasks for that customer etc... Problem is when I have one form open (eg the customers form) when I open the second form (eg the projects form) the project tasks subforms treeview is not populated I have stepped thru the code and the correct query is run and the code adds the correct items to the treeview but the treeview remains empty on screen When I have one form open, either the customer or the project form, the task subform it contains works perfectly. The problem only occurs when there is more than one instance of the tasks subform open... In the tasks subform I am referencing the treeview like this : Dim tv As TreeView Set tv = Me("tvTaskHistory").Object rather than the usual Me.tvTaskHistory but neither method solves my problem. |
#2
|
|||
|
|||
Problem with TreeView on a shared subform
Thought best to point out this is Access 2007 running on Windows 7
"Pete Coales" wrote: I have a subform that contains a treeview that is populated with tasks and their followups etc... I want this subform to be placed on a number of parent forms which will invoke a sub on the subform to populate the treeview using a filter based on the value of the main forms entity... ie when on the customers form only show tasks for that customer etc... Problem is when I have one form open (eg the customers form) when I open the second form (eg the projects form) the project tasks subforms treeview is not populated I have stepped thru the code and the correct query is run and the code adds the correct items to the treeview but the treeview remains empty on screen When I have one form open, either the customer or the project form, the task subform it contains works perfectly. The problem only occurs when there is more than one instance of the tasks subform open... In the tasks subform I am referencing the treeview like this : Dim tv As TreeView Set tv = Me("tvTaskHistory").Object rather than the usual Me.tvTaskHistory but neither method solves my problem. |
Thread Tools | |
Display Modes | |
|
|