A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Suppress Warning Message - DAO Insert



 
 
Thread Tools Display Modes
  #1  
Old January 31st, 2005, 09:59 PM
dave h
external usenet poster
 
Posts: n/a
Default Suppress Warning Message - DAO Insert

Hi,

When using -

DoCmd.RunSQL mySQL with an INSERT INTO............

How can I surpress the dialog box that asks to confirm the append?

Thanks, Dave H.


  #2  
Old January 31st, 2005, 10:09 PM
Brendan Reynolds
external usenet poster
 
Posts: n/a
Default

Use "CurentDb.Execute mySQL" instead.

--
Brendan Reynolds (MVP)


"dave h" wrote in message
...
Hi,

When using -

DoCmd.RunSQL mySQL with an INSERT INTO............

How can I surpress the dialog box that asks to confirm the append?

Thanks, Dave H.




  #3  
Old January 31st, 2005, 10:12 PM
Bob Bonta
external usenet poster
 
Posts: n/a
Default

docmd.setwarnings false
docmd.runsql mysql
docmd.setwarnings true

-----Original Message-----
Hi,

When using -

DoCmd.RunSQL mySQL with an INSERT

INTO............

How can I surpress the dialog box that asks to confirm

the append?

Thanks, Dave H.


.

  #4  
Old January 31st, 2005, 10:15 PM
dave h
external usenet poster
 
Posts: n/a
Default

Works like a charm - thanks much!

"Brendan Reynolds" brenreyn at indigo dot ie wrote in message
...
Use "CurentDb.Execute mySQL" instead.

--
Brendan Reynolds (MVP)


"dave h" wrote in message
...
Hi,

When using -

DoCmd.RunSQL mySQL with an INSERT INTO............

How can I surpress the dialog box that asks to confirm the append?

Thanks, Dave H.






  #5  
Old February 1st, 2005, 02:34 PM
Mark via AccessMonster.com
external usenet poster
 
Posts: n/a
Default

It's probably a good idea to include dbFailOnError at the end of the
..Execute statement:

CurentDb.Execute mySQL, dbFailOnError

Since using .Execute will not break on a failure during the operation,
you'll never know if something went wrong.

--
Message posted via http://www.accessmonster.com
  #6  
Old February 1st, 2005, 03:17 PM
Roger Carlson
external usenet poster
 
Posts: n/a
Default

While bracketing the command with DoCmd.SetWarning will work, I always use
the .Execute method because it is demonstratably faster than DoCmd.RunSQL.

--
--Roger Carlson
Access Database Samples: www.rogersaccesslibrary.com
Want answers to your Access questions in your Email?
Free subscription:
http://peach.ease.lsoft.com/scripts/...UBED1=ACCESS-L


"Bob Bonta" wrote in message
...
docmd.setwarnings false
docmd.runsql mysql
docmd.setwarnings true

-----Original Message-----
Hi,

When using -

DoCmd.RunSQL mySQL with an INSERT

INTO............

How can I surpress the dialog box that asks to confirm

the append?

Thanks, Dave H.


.



 




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Challenging Charting C TO Charts and Charting 0 January 17th, 2005 06:57 PM
Warning message Scott Running & Setting Up Queries 2 October 6th, 2004 01:23 PM
how to suppress the security warning in Access 2003 Paul Using Forms 1 September 29th, 2004 09:53 PM


All times are GMT +1. The time now is 03:28 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.