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. MS access relationships and ASP

MS access relationships and ASP

Scheduled Pinned Locked Moved Database
helplearning
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.
  • S Offline
    S Offline
    Sarvesvara BVKS Dasa
    wrote on last edited by
    #1

    HI, I created tables in MS Access.. and am quite familiar in accessing the tables from the ASP page for my site. I then saw somethin like relationships.. and started playing around it. I got the followinf stuff.... Employee (table) - EmpId - DeptId - Name Department (table) - DeptId - DeptHead - Description The Dept head at the second table is linked with the EmpId in the first table by means of the relationships.... NOW, will it be possible for me to access the first table data, by querying the second table. (In access screen I was able to see the first table data in the second table by clicking + on the field which joins them) Please help I was born intelligent
    Education ruined me!.

    J 1 Reply Last reply
    0
    • S Sarvesvara BVKS Dasa

      HI, I created tables in MS Access.. and am quite familiar in accessing the tables from the ASP page for my site. I then saw somethin like relationships.. and started playing around it. I got the followinf stuff.... Employee (table) - EmpId - DeptId - Name Department (table) - DeptId - DeptHead - Description The Dept head at the second table is linked with the EmpId in the first table by means of the relationships.... NOW, will it be possible for me to access the first table data, by querying the second table. (In access screen I was able to see the first table data in the second table by clicking + on the field which joins them) Please help I was born intelligent
      Education ruined me!.

      J Offline
      J Offline
      Jean Marc Molina
      wrote on last edited by
      #2

      Hi, > The Dept head at the second table is linked with the EmpId in the first table by means of the relationships.... From your table definitions, I think DeptId is a foreign key that links the Employee to a Department. > NOW, will it be possible for me to access the first table data, by querying the second table. It depends of what you want to do. What do you mean by "access the first table data" ? Do you want to know the employees for a specific departement ? Just a DB design tip : - don't use prefix on your field names : Employee.Id or Department.Id are ok, Employee.EmpId or Department.DeptId/DeptHead is a redondance JM. Molina Web: http://goa.ifrance.com

      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