?
Solved

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

Posted on 2003-12-04
2
Medium Priority
?
687 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 2000 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

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

Question has a verified solution.

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

It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
Traditionally, the method to display pictures in Access forms and reports is to first download them from URLs to a folder, record the path in a table and then let the form or report pull the pictures from that folder. But why not let Windows retr…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses

770 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