key in tree view list

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,
 
A

Arvin Meyer MVP

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
 
I

inungh

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,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top