Wrox Programmer Forums
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 April 11th, 2004, 10:41 PM
Authorized User
Join Date: Aug 2003
Posts: 10
Thanks: 0
Thanked 1 Time in 1 Post
Default Confirm Button after update

Does anyone have the vb code for adding a confirm button after the user has changed data on the form? I have a data saved macro that runs after an update but I want to insert a confirm message prior to activating the "data saved" alert. This would be for an existing record.
Old April 12th, 2004, 03:21 PM
Friend of Wrox
Join Date: Jun 2003
Posts: 308
Thanks: 0
Thanked 0 Times in 0 Posts

Can I assume you're using unbound forms?
If that's the case, then just write the code before your update statement.

If you're using bound forms, then it's a bit messier, and you'll probably have to end up putting code in all your bound objects' After Update events.

So what's it to be? Bound or unbound?

I am a loud man with a very large hat. This means I am in charge
Old April 12th, 2004, 03:28 PM
Authorized User
Join Date: Aug 2003
Posts: 10
Thanks: 0
Thanked 1 Time in 1 Post

The form is bound to the table. The records are inserted and updated through the form. I wanted to add a failsafe Confirm button if changes were made and not correct. I have the macro running prior to the macro that verifies the save but there is no option to cancel. That is what I am missing.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Javascript confirm box with just an 'OK' button crmpicco Javascript How-To 28 March 12th, 2014 06:44 AM
Update Panel & Button Control Harjinder ASP.NET 2.0 Professional 0 January 28th, 2008 06:13 AM
Update Button in DataGrid Bibin .NET Framework 1.x 1 January 28th, 2006 08:22 AM
coding for "update" button.. ct Excel VBA 4 August 12th, 2005 02:55 AM

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