Welcome to SPN

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

Sign Up Now!

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
    >
     

Share This Page