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

Paradise Lost: Help setting up a delete query

Discussion in 'Information Technology' started by moneyball.wilson@gmail.com, Jul 28, 2006.

  1. moneyball.wilson@gmail.com

    moneyball.wilson@gmail.com
    Expand Collapse
    Guest

    Hi,

    I am trying to set up a delete query so that I can delete progress
    reports. The progress report contains a main form and a subform. I am
    trying to set up the query so that when I click on a button whatever
    report is currently showing on the form is deleted and all the data for
    that particular day is cleared, but I am having some trouble doing
    that. In other words I am looking for a way to set up the query so
    that it selects the record refering to the particualr date displayed on
    the form and then deletes it. Can anyone help? Does this make any
    sense?

    Sincerely,
    Rambo
     
  2. Loading...

    Similar Threads Forum Date
    Islam Description of the Virgins in Paradise Interfaith Dialogues May 16, 2012
    Nature Stranger Than Paradise (The Adivassi and FRA) Breaking News Jun 16, 2010
    Verses Stating that All People Can Go to Paradise Sikh Sikhi Sikhism Jun 4, 2006
    Sikh News Kangra Valley is the new tourist paradise (Hindustan Times) Breaking News Jun 25, 2005
    Lost Treasures Of The Sikh Kingdom - BBC Documentary History of Sikhism May 28, 2016

  3. Michel Walsh

    Michel Walsh
    Expand Collapse
    Guest

    Hi,


    DoCmd.RunSQL "DELETE FROM tableName WHERE dateField =
    FORMS!formNameHere!ControlNameHere"


    should do the job. Make sure you test on a dummy database, to not delete
    useful records.


    Hoping it may help,
    Vanderghast, Access MVP


    <moneyball.wilson@gmail.com> wrote in message
    news:1152632490.184398.64730@h48g2000cwc.googlegroups.com...
    > Hi,
    >
    > I am trying to set up a delete query so that I can delete progress
    > reports. The progress report contains a main form and a subform. I am
    > trying to set up the query so that when I click on a button whatever
    > report is currently showing on the form is deleted and all the data for
    > that particular day is cleared, but I am having some trouble doing
    > that. In other words I am looking for a way to set up the query so
    > that it selects the record refering to the particualr date displayed on
    > the form and then deletes it. Can anyone help? Does this make any
    > sense?
    >
    > Sincerely,
    > Rambo
    >
     
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