Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
Password Reminder
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 11th, 2004, 10:41 PM
Authorized User
Join Date: Aug 2003
Location: , , USA.
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.
Reply With Quote
  #2 (permalink)  
Old April 12th, 2004, 03:21 PM
Friend of Wrox
Join Date: Jun 2003
Location: Melbourne, Vic, Australia.
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
Reply With Quote
  #3 (permalink)  
Old April 12th, 2004, 03:28 PM
Authorized User
Join Date: Aug 2003
Location: , , USA.
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.
Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 12:34 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.