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. Web Development
  3. ASP - ms access relationships querry?!?!

ASP - ms access relationships querry?!?!

Scheduled Pinned Locked Moved Web Development
helpquestionlearning
5 Posts 3 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!.

    B M 2 Replies 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!.

      B Offline
      B Offline
      Bullschmidt
      wrote on last edited by
      #2

      It looks like it would be more natural to link the Employee table with the Department table on the DeptID field. Best regards, J. Paul Schmidt - Freelance ASP Web Developer http://www.Bullschmidt.com - Creating "dynamic" Web pages that read and write from databases...

      S 1 Reply Last reply
      0
      • B Bullschmidt

        It looks like it would be more natural to link the Employee table with the Department table on the DeptID field. Best regards, J. Paul Schmidt - Freelance ASP Web Developer http://www.Bullschmidt.com - Creating "dynamic" Web pages that read and write from databases...

        S Offline
        S Offline
        Sarvesvara BVKS Dasa
        wrote on last edited by
        #3

        Can u throw on some light like... how to do it in the access.. and how to take the data using my ASP pages please... I was born intelligent
        Education ruined me!.

        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!.

          M Offline
          M Offline
          Michael P Butler
          wrote on last edited by
          #4

          Off the top of my head, select * from Employee, Department where Department.DeptId = Employee.DeptId Michael 'War is at best barbarism...Its glory is all moonshine. It is only those who have neither fired a shot nor heard the shrieks and groans of the wounded who cry aloud for blood, more vengeance, more desolation. War is hell.' - General William Sherman, 1879

          S 1 Reply Last reply
          0
          • M Michael P Butler

            Off the top of my head, select * from Employee, Department where Department.DeptId = Employee.DeptId Michael 'War is at best barbarism...Its glory is all moonshine. It is only those who have neither fired a shot nor heard the shrieks and groans of the wounded who cry aloud for blood, more vengeance, more desolation. War is hell.' - General William Sherman, 1879

            S Offline
            S Offline
            Sarvesvara BVKS Dasa
            wrote on last edited by
            #5

            hmmm... my question was different... In my case.. I had setup the relationship in the ms acces itself. And, I use that through the ASP page. All I want to know is... how can I get the calue from the second table, when I make the connection/record_set on the first table (both tables are linked by the relationship in access?!?!)... I was born intelligent
            Education ruined me!.

            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