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 | 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
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 22nd, 2004, 06:08 PM
Authorized User
 
Join Date: Mar 2004
Location: Orange County, California, USA.
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default How can I turn off Warning information?

In the code below I perform a save to a file name as well as appending one table to another table for history reasons. I don't want the end user to be confronted with pop up questions about are you sure you want to run this query and son on.
How can I turn off those types of questions in VBA like you can in a macro with the SetWarnings command?


Private Sub cmdSaveConsumable_Click()
DoCmd.TransferText acExportDelim, , "qryExportConsumables", "T:\Consumables.prn", True
 Dim stDocName As String
    stDocName = "qryAppend to Consumable History"
    DoCmd.OpenQuery stDocName, acNormal, acEdit
lblSavemsg.Visible = True
End Sub

Reply With Quote
  #2 (permalink)  
Old March 22nd, 2004, 06:32 PM
Authorized User
 
Join Date: Mar 2004
Location: Orange County, California, USA.
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I did some searching in some of the past posts and found the answer on 3/4/04

DoCmd.SetWarnings False



Reply With Quote
  #3 (permalink)  
Old March 23rd, 2004, 09:11 AM
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

Quote:
quote:Originally posted by Brian263
 I did some searching in some of the past posts and found the answer on 3/4/04

DoCmd.SetWarnings False
True, Brian, but remember to set it to TRUE right after your code block to make sure you turn warnings back on. You want to be alerted of problems in other parts of your database if they arise.


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
Search - Turn Off All Sites druk BOOK: Beginning SharePoint 2007: Building Team Solutions with MOSS 2007 ISBN: 978-0-470-12449-9 1 December 18th, 2007 12:49 PM
cookie turn off swagatika ASP.NET 1.0 and 1.1 Basics 2 March 15th, 2006 09:25 AM
Hidden field won't turn blank wirerider ASP.NET 2.0 Basics 1 February 28th, 2006 06:37 PM
to turn Calculation OFF for all except one column alienscript Excel VBA 1 December 17th, 2003 09:01 AM
Turn a table on its side nbryson SQL Language 12 August 20th, 2003 08:01 AM



All times are GMT -4. The time now is 05:54 AM.


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