key in tree view list

  • Thread starter Thread starter iccsi
  • Start date Start date
I

iccsi

I tried to put a string or a number when I add a node to my tree view
list, but Access does not let me to do so.

What type of data tree view key expect?
any working example to have key value in the tree view list?

Your information is great appreciated,
 
iccsi said:
I tried to put a string or a number when I add a node to my tree view
list, but Access does not let me to do so.

What type of data tree view key expect?
any working example to have key value in the tree view list?

Here is an example of code to add a node:

Me.tvCtl.Nodes.Add , , "P", "Pending Contracts"
Me.tvCtl.Nodes.Item("P").Expanded = True

Which adds the words "Pending Contracts" and expands the node

here's another:

Me.tvCtl.Nodes.Add "H", 4, "C" & rst!ContractID, CloseDate & " - " &
rst!LastName

which in the expanded node lists (in a loop) the Closing date and last name,
so the TV looks like:

Pending Contracts
03/31/09 - Smith
04/06/09 - Jones
 
Here is an example of code to add a node:

Me.tvCtl.Nodes.Add , , "P", "Pending Contracts"
Me.tvCtl.Nodes.Item("P").Expanded = True

Which adds the words "Pending Contracts" and expands the node

here's another:

Me.tvCtl.Nodes.Add "H", 4, "C" & rst!ContractID, CloseDate & " - " &
rst!LastName

which in the expanded node lists (in a loop) the Closing date and last name,
so the TV looks like:

Pending Contracts
    03/31/09 - Smith
    04/06/09 - Jones

Thanks millions,
 
Back
Top