Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!
  1.   Become a Supporter    ::   Make a Contribution   
    Target (Recurring Monthly): $200 :: Achieved: $98

Deleting record with all its subforms/relationships

Discussion in 'Information Technology' started by iTanas, Jul 28, 2006.

  1. iTanas

    iTanas
    Expand Collapse
    Guest

    Hello, I have a table thats called Hardware (with Workstation name field) and
    another table thats called Software (with list of softwares), I have a 3rd
    table, Relationship, that is a relationship between these two, so that each
    Workstation has several softwares. When I go ahead and delete a certain
    Workstation, it does not delete the associated softwares for that
    workstation. So when I perform the Delete then in the Relationship I still
    have the dangling softwares that are no longer attached to any workstation
    (that field becomes blank).

    What is the proper way to delete a workstation so that it actually goes and
    removes its associated 'subfields' or softwares that are attached to it in
    relationship table?

    Thanks.
     
  2. Loading...


  3. Douglas J. Steele

    Douglas J. Steele
    Expand Collapse
    Guest

    Assuming you've created an actual Relationship between the tables, you can
    enforce Referential Integrity, and have it Cascade Delete.

    Otherwise, you'll have to issue additional DELETE statements when you delete
    the one record.

    --
    Doug Steele, Microsoft Access MVP
    http://I.Am/DougSteele
    (no private e-mails, please)


    "iTanas" <iTanas@discussions.microsoft.com> wrote in message
    news:B0DDC738-1928-499C-9B32-84339BEEBA11@microsoft.com...
    > Hello, I have a table thats called Hardware (with Workstation name field)
    > and
    > another table thats called Software (with list of softwares), I have a 3rd
    > table, Relationship, that is a relationship between these two, so that
    > each
    > Workstation has several softwares. When I go ahead and delete a certain
    > Workstation, it does not delete the associated softwares for that
    > workstation. So when I perform the Delete then in the Relationship I
    > still
    > have the dangling softwares that are no longer attached to any workstation
    > (that field becomes blank).
    >
    > What is the proper way to delete a workstation so that it actually goes
    > and
    > removes its associated 'subfields' or softwares that are attached to it in
    > relationship table?
    >
    > Thanks.
     
Since you're here... we have a small favor to ask...

More people are visiting & reading SPN than ever but far fewer are paying to sustain it. Advertising revenues across the online media have fallen fast. So you can see why we need to ask for your help. Donating to SPN's is vote for free speech, for diversity of opinions, for the right of the people to stand up to religious bigotry. Without any affiliation to any organization, this constant struggle takes a lot of hard work to sustain as we entirely depend on the contributions of our esteemed writers/readers. We do it because we believe our perspective matters – because it might well be your perspective, too... Fund our efforts and together we can keep the world informed about the real Sikh Sikhi Sikhism. If everyone who writes or reads our content, who likes it, helps us to pay for it, our future would be much more secure. Every Contribution Matters, Contribute Generously!

    Become a Supporter      ::     Make a Contribution     



Share This Page