1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

access form printing and delete

Discussion in 'Business Applications' started by jamesb2, Nov 30, 2011.

Thread Status:
Not open for further replies.
Advertisement
  1. jamesb2

    jamesb2 Thread Starter

    Joined:
    Dec 8, 2007
    Messages:
    125
    I have a database where when I click on the print button on the form it prints and prompts me to delete the record that I just filled out and printed. This is what I want to do but, I do not want to be prompted to deleted it. Is it possible to delete the record without being prompted? the code to delete the record is...

    killrecord:

    DoCmd.RunCommand acCmdSelectRecord
    DoCmd.RunCommand acCmdDeleteRecord


    Thank you in advance..
     
  2. Rockn

    Rockn

    Joined:
    Jul 29, 2001
    Messages:
    21,334
    DoCmd.SetWarnings False
     
  3. jamesb2

    jamesb2 Thread Starter

    Joined:
    Dec 8, 2007
    Messages:
    125
    Worked Perfect!!! Thank you
     
  4. OBP

    OBP

    Joined:
    Mar 8, 2005
    Messages:
    19,895
    Don't forget to set the warnings back on again with
    DoCmd.SetWarnings True
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Loading...
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/1029123

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice