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.