Query Child Nodes Tree View (1 Viewer)

Donovansmth

New member
Local time
Today, 03:40
Joined
Jan 4, 2023
Messages
5
Hello, is it possible to query the child nodes that show based on the id field in a text box?

An AfterUpdate to the id field, the child nodes update and refresh to show child nodes that share the same parent ID.

scenerio - year(ID), Class(Parent), student(child)

On the home page if the year changes,m(text box), then the students nodes should change to match the year, the classes won’t change. When I click the student node, I have a form that updates and shows the student data .

All features work, however because the tree view is activex, I’m not sure of the process to make this query work.

Thanks for any direction
 

Ranman256

Well-known member
Local time
Today, 03:40
Joined
Apr 9, 2015
Messages
4,337
My advice it so stop using tree view. It must be programmed.

instead,
use the SWITCHBOARD, you only need add values.
or
a continuous form with a text box/combo box for users to filter results.
Code:
sub txtBoxFilter_afterupdate()

if  isnull(txtBoxFilter) then 
   me.filterOn = false
else
  me.filter = "[field]='"  &   txtBoxFilter & "'"
   me.filterOn = true
end sub
 

Pat Hartman

Super Moderator
Staff member
Local time
Today, 03:40
Joined
Feb 19, 2002
Messages
43,331
I just posted this recently. It might give you a different idea for an interface that can be controlled with minimal code.
 

Users who are viewing this thread

Top Bottom