Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old September 28th, 2004, 09:14 PM
Registered User
Join Date: Sep 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to dvlnblk2000
Default ACCESS Programming DELTE problem

Hello, I have a continous form that shows all users in this address book app I am building. I put a delete button next to the person's information and it shows up continuously. But when I press the delete button I get an error beep and the record is still there. Here is my code:

Private Sub delteIcon_Click()
On Error GoTo Err_delteIcon_Click

    DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
    DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70
     DoCmd.OpenForm "ViewAll"

    Exit Sub

I can do this when I only view one record at a time but can I get it to work on the continuous form? By the way, I saw that someone had a problem with the record showing #DELETED after they hit the delete button on a record. I was able to fix this by closing the results form and reopening it:

     DoCmd.OpenForm "ViewAll"

Thanks for the help in advance

Old September 29th, 2004, 07:50 AM
Friend of Wrox
Join Date: Jun 2003
Posts: 1,151
Thanks: 2
Thanked 14 Times in 14 Posts
Send a message via ICQ to SerranoG Send a message via AIM to SerranoG

Instead of closing and reopening, how about simply...


Greg Serrano
Michigan Dept. of Environmental Quality, Air Quality Division

Similar Threads
Thread Thread Starter Forum Replies Last Post
Programming Problem nappydyno234 Java Basics 2 February 11th, 2006 12:27 PM
Linear programming problem milk_vanilla Excel VBA 5 August 25th, 2005 09:06 AM
how to prompt user if they try to delte wrong valu method ASP.NET 1.x and 2.0 Application Design 4 June 17th, 2005 08:32 AM
Programming in Access Using VB bell Access VBA 7 November 4th, 2004 06:12 PM
Problem while programming Ecard samir ASP.NET 1.0 and 1.1 Professional 1 December 14th, 2003 01:44 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.