Wrox Programmer Forums
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 29th, 2005, 10:20 AM
Registered User
 
Join Date: Jul 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Access 2003 Treview

I have a tree view built into a form when i refresh the form data everything refreshes except the treeview control to do this i have to close the from then reopen it - any ideas how this can be done without closing and reopening
 
Old July 29th, 2005, 10:29 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

Try:

ctlCombo.Requery

Type "requery control" in the Help box in the VBA window for more info.



mmcdonal
 
Old July 31st, 2005, 06:21 AM
Registered User
 
Join Date: Jul 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have tried what you suggested and several variations but to no effect. the Treeview control is populated by a fill function that uses some 50+ querries to populate the treeview the code is similar to the code found in "expert one-to-one" Access Development by Helen Feddeman.
 
Old July 31st, 2005, 06:25 AM
Registered User
 
Join Date: Jul 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Many thanks i have tried that but no luck the tree view control is populated by 50+ querries when the form loads is there a way to unload and reload with uptodate data?
Quote:
quote:Originally posted by mmcdonal
 Try:

ctlCombo.Requery

Type "requery control" in the Help box in the VBA window for more info.



mmcdonal
 
Old August 1st, 2005, 04:42 PM
Registered User
 
Join Date: Jul 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have now resolved the problem - me.treviewname.nodes.clear removes all the nodes then - me.treeviewname_fill puts them back with the updated data.

Quote:
quote:Originally posted by simmyboy
 I have tried what you suggested and several variations but to no effect. the Treeview control is populated by a fill function that uses some 50+ querries to populate the treeview the code is similar to the code found in "expert one-to-one" Access Development by Helen Feddeman.
 
Old July 18th, 2006, 02:51 PM
Registered User
 
Join Date: Jul 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hey, just wanted to "Thank you" for posting your solution - not everybody does - it really helped me with my problem.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Trigger in Access 2003 CarlosV Access 7 April 23rd, 2007 09:50 AM
Access 2003 Documenter strike33 Access 1 August 23rd, 2006 06:22 AM
Upgrading from Access 2002 to Access 2003 lryckman Access 1 July 16th, 2006 01:46 AM
Access 2003 n2suns Access 4 May 17th, 2005 03:37 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.