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 VBA
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 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
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old September 13th, 2004, 03:21 PM
Registered User
 
Join Date: Sep 2004
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Disable/Trap msgBox??

Anybody have any idea how to use VBA to disable the msgbox that pops up with an SQL INSERT or UPDATE

example:

DoCmd.RunSQL INSERT INTO tblTrash (intEmpty) VALUES ('1');

this will pop up a message box that says About to append 1 row.

Same occurs when you do an UPDATE query.

Thanks!!

Andy Delgado
Reply With Quote
  #2 (permalink)  
Old September 13th, 2004, 03:54 PM
Friend of Wrox
Points: 4,007, Level: 26
Points: 4,007, Level: 26 Points: 4,007, Level: 26 Points: 4,007, Level: 26
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Lansing, Michigan, USA.
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

DoCmd.SetWarnings False
DoCmd.RunSQL INSERT INTO tblTrash (intEmpty) VALUES ('1');
DoCmd.SetWarnings True

Remember to set it back to true IMMEDIATELY after issuing your SQL so you get other warnings.


Greg Serrano
Michigan Dept. of Environmental Quality, Air Quality Division
Reply With Quote
Reply


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
chap 2 about trap INT speedwolf BOOK Beginning Linux Programming, 3rd Edition 0 March 13th, 2008 01:02 AM
Need help to trap errors starnet SQL Server 2000 1 October 6th, 2006 11:05 AM
GetObject Trap bostek VBScript 2 November 24th, 2004 02:39 AM
How can I trap for a connection error cdukes77@bellsouth.net Classic ASP Databases 1 April 27th, 2004 03:09 AM
Trap for empty recordset in a SP Mitch Access VBA 2 September 5th, 2003 04:47 PM



All times are GMT -4. The time now is 10:47 AM.


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