Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. saving nested collection

saving nested collection

Scheduled Pinned Locked Moved Database
questiondatabasehelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    reza assar
    wrote on last edited by
    #1
    1. first of all i want to save a TreeView in database i designed a table with three fields (ID , NodeName,UpareNodeID) and create a relation ship with ID and UpareNodeID is it correct? i want to know if there is a better solution to save and retrieve this kind of collection 2) the second problem : how can i make a relationship from a field to another in the same table in ms access 2007 ? thanks!
    J 1 Reply Last reply
    0
    • R reza assar
      1. first of all i want to save a TreeView in database i designed a table with three fields (ID , NodeName,UpareNodeID) and create a relation ship with ID and UpareNodeID is it correct? i want to know if there is a better solution to save and retrieve this kind of collection 2) the second problem : how can i make a relationship from a field to another in the same table in ms access 2007 ? thanks!
      J Offline
      J Offline
      Johan Hakkesteegt
      wrote on last edited by
      #2

      All the fields in each row in your table, are automatically related to each other, by being in the same row. You can not and do not need to create any relationship. If you want to relate values from one row to those in another row, you will have to create two tables, and create a relationship between those. So for example something like: Table 1: Nodes (ID, NodeName) Where ID is unique Tabl e2: UpareNodes (ID, NodeName, Parent_ID) Relation: Nodes.ID = UpareNodes.Parent_ID

      My advice is free, and you may get what you paid for.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups