Solved

overwrite a table without confirm to an external MDB

Posted on 2004-08-05
4
631 Views
Last Modified: 2010-07-27
I want to export, with a macro or code, a few tables or make table queries to an external MDB.

If I do a make table query or macro CopyObject or code DoCmd.CopyObject to make or copy a table to external mdb and the table exists in the external mdb I get a 'already exists, overwrite?' confirmation.  I don't want to see these confirmation.
 
Is there a way to override this? I can delete a table using code within the current db without confirmation, in order to then recreate it in current db so don't get this message. But can't seem to do same in an external db.

tx,

Luke
0
Comment
Question by:LukeB
[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
  • 2
4 Comments
 
LVL 26

Expert Comment

by:dannywareham
ID: 11724925
I think you can setwarnings to false for this...
0
 
LVL 1

Author Comment

by:LukeB
ID: 11725885
ok, in the macro (and how) or in code (and how) ?
0
 
LVL 26

Accepted Solution

by:
dannywareham earned 175 total points
ID: 11726082
Either
In marco (setwarnings then in bottom window put No) - it's in the dropdown list

In code
DoCmd.SetWarnings (False)

Using a macro is probably easier if you're unsure of coding. (and its dead simple)
At the end of the macro, put setwarnings to yes though
0
 
LVL 1

Author Comment

by:LukeB
ID: 11733083
Hi Danny,

perfect, thanks
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

707 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