Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access VBA
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA 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 February 8th, 2006, 07:14 AM
Authorized User
 
Join Date: Feb 2006
Posts: 66
Thanks: 0
Thanked 0 Times in 0 Posts
Default The ugly prompt when using RunSql Command

How can i do that the following prompt will not appear :
"You are about to update 11 row(s) . Once you click yes , you can't use the Undo command to reverse the changes . Are you sure you want to update these records ? "
?

Paula .


 
Old February 8th, 2006, 10:09 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
Default

Hi, Paula,

If you're in VBA code, you can do this

DoCmd.SetWarnings False

Put your SQL code here.

DoCmd.SetWarnings True


Don't forget to reset it back to true! It's important!


Greg Serrano
Michigan Dept. of Environmental Quality, Air Quality Division
 
Old February 8th, 2006, 10:20 AM
Authorized User
 
Join Date: Feb 2006
Posts: 66
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks!!!!!It worked!!!!!






Similar Threads
Thread Thread Starter Forum Replies Last Post
command prompt karthisena BOOK: ASP.NET Website Programming Problem-Design-Solution 1 February 27th, 2007 04:11 AM
Command Prompt karthisena General .NET 2 January 25th, 2007 12:29 PM
Command Prompt joconnor PHP How-To 1 August 11th, 2004 06:29 AM
Help with DoCmd.RunSQL command ricmar Access VBA 3 July 21st, 2004 03:32 PM





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