A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Problem with TreeView on a shared subform



 
 
Thread Tools Display Modes
  #1  
Old October 30th, 2009, 12:15 AM posted to microsoft.public.access.forms
Pete Coales
external usenet poster
 
Posts: 2
Default 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  
Old October 30th, 2009, 12:44 AM posted to microsoft.public.access.forms
Pete Coales
external usenet poster
 
Posts: 2
Default 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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 03:44 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.