I have been working with the TreeView control and ahve been able to accomplish alot with it (I'll post a sample when more of it is working)

Here is the issue

I Have a TreeView that shows Categories and Sub-Categories

I have a database that stores these

I can open a form to add a sub-category and refresh the treeview to show it
using AddCategory() (see below)

I can open a form and delete a sub-category and refresh the treeview to show it using DeleteCategory() (see below)


what I canot figure out is how to open a form to edit a sub-category, then show the edited item in the treeview

Using forms to do this is how the specs are, so I cannot change it.

Any ideas?? - Thanks - AB


code is below

-------------------

Public Sub AddCategory()

Dim newNode As node
Set newNode = Me!axTreeview.Nodes.Add("o" & txtID, tvwChild, "o" & txtNewID, txtNewCategoryName)
newNode.EnsureVisible

End Sub

-----------------------

Public Sub DeleteCategory()


axTreeview.Nodes.Remove "o" & Me.txtID

End Sub

----------------

Public Sub RenameCategory()

'baffled

End Sub