Append query, block questions

gheyman

Well-known Member
Joined
Nov 14, 2005
Messages
2,332
Office Version
  1. 365
Platform
  1. Windows
When my Append quesry is ran the user gets the Pop questions (You are about to run.....) is there a way to stop this and just append the data. It confuses my users and out of precuation, they dont want to click anything and they come running to ask what to do. I want it to just go ahead and Append.

PS my query is run from the event button
OpenQuery
Query Name qryAppendNewQuoteNumbers


Its not done in VB.
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
if it's not done in VB how is it done? Using macros? Either way you want to "set warnings off"
 
Upvote 0
I wouldn't use macros and turn off warnings, but maybe that's because I'm out of touch with macros and how they might have improved on design. Big problem with them has always been (AFAIK) that if they error out, they stop. Now warnings are left turned off, which could be bad. My 2nd choice would be turning them off in code, and ensuring I have an error trap that ensures they're turned back on should an error occur. If not done properly and an error occurs, they can still be left off. First choice would be the .Execute method of the CurrentDb object with the dbFailOnError parameter. No prompt unless the query/sql fails.

CurrentDb.Execute mySqlString, dbFailOnError
 
Upvote 0

Forum statistics

Threads
1,213,554
Messages
6,114,280
Members
448,562
Latest member
Flashbond

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top