Solved

How can I automatically answer "yes" to pop up windows in Access?

Posted on 2003-12-04
2
592 Views
Last Modified: 2006-11-17
Hi Experts,

How can I automatically answer "yes" to msgbox windows in Access?

A Yes/No msgbox pops up when I run a Make Table Query. How can I send a "yes" using VBA?

Thanks
0
Comment
Question by:indyng
2 Comments
 
LVL 8

Expert Comment

by:Benjamin_Luk
ID: 9880274
Please use code to do Make Table Query
First delete the old table,and make the table using SQL:

On error resume next
DoCmd.DeleteObject acTable, "Your Table"
DoCmd.OpenQuery "Make Table Query"

You can create  one button, and add this code, but please revise the table name & SQL first

Regards

Ben
0
 
LVL 3

Accepted Solution

by:
Drizzt95 earned 500 total points
ID: 9880560
Just add the following before your make table query code:

Docmd.Setwarnings False

And the after make table query code add:

Docmd.Setwarnings True
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now