Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / ActiveX Controls / August 2003

Tip: Looking for answers? Try searching our database.

Openform from Treeview control

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Carrie - 21 Aug 2003 22:03 GMT
I want a popup form to open when clicking on a node in
the treeview control. What happens is the form opens
behind the current form because the treeview still has
the focus. I have tried to set the focus to the newly
opened form, but doesn't seem to work.
Any ideas?
Thanks,
carrie

Here is the code:

Private Sub TreeView1_NodeClick(ByVal Node As Object)
DoCmd.OpenForm "frmMyForm", , , , , , "passingargs"
Forms!frmMyForm.SetFocus
End Sub

I also added node.selected = false in there, just to see
if that would take the focus off the tree, but it didn't
work either.
Alex Dybenko - 22 Aug 2003 13:49 GMT
try to make you "popup" form modal or popup

Signature

Alex Dybenko (MVP)
http://Alex.Dybenko.com

> I want a popup form to open when clicking on a node in
> the treeview control. What happens is the form opens
[quoted text clipped - 15 lines]
> if that would take the focus off the tree, but it didn't
> work either.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.