access form printing and delete

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

jamesb2

Thread Starter
Joined
Dec 8, 2007
Messages
129
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..
 

OBP

Joined
Mar 8, 2005
Messages
19,895
Don't forget to set the warnings back on again with
DoCmd.SetWarnings True
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

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 807,865 other people just like you!

Latest posts

Staff online

Members online

Top