Solved

overwrite a table without confirm to an external MDB

Posted on 2004-08-05
4
617 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 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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…

867 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

20 Experts available now in Live!

Get 1:1 Help Now