?
Solved

overwrite a table without confirm to an external MDB

Posted on 2004-08-05
4
Medium Priority
?
645 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
  • 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 700 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

Transaction-level recovery for Oracle database

Veeam Explore for Oracle delivers low RTOs and RPOs with agentless transaction log backup and transaction-level recovery of Oracle databases. You can restore the database to a precise point in time, even to a specific transaction.

Question has a verified solution.

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

Windows Explorer let you handle zip folders nearly as any other folder: Copy, move, change, and delete, etc. In VBA you can also handle normal files and folders, but zip folders takes a little more - and that you'll find here.
Windows Explorer lets you open cabinet (cab) files like any other folder. In VBA you can easily handle normal files and folders, but opening and indeed creating cabinet files takes a lot more - and that's you'll find here.
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…
Suggested Courses

750 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