Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Take out prompting in append query in VB 1

Status
Not open for further replies.

pronate

Technical User
Jul 7, 2002
64
SG
Hi,

I am trying to use the Docmd.RunSql method to run a append query.

But everytime Access will prompt me for confirmation. Is there a way to do away with the confirmation dialog box? The same goes for make table query and update query.

Cheers and thanks!
Sam
 
Use the Setwarnings Method to tell Access not to warn the user that an action query is about to be run.

Docmd.Setwarnings False ' Turn warnings off
Docmd.RunSql ' Run the action query
Docmd.Setwarnings True ' Turn warnings on again
 
Hi Bill,

I clocked this as helpful - standard, useful and regular, but I forgot about setwarnings.

Darrylle "Never argue with an idiot, he'll bring you down to his level - then beat you with experience." AND "A pointer to a solution is better than the solution - you'll remember the solution via a pointer". darrylles@totalise.co.uk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top