Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Database Design / April 2005

Tip: Looking for answers? Try searching our database.

turn off over write confirmation using microsoft access

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Anthony - 18 Apr 2005 23:35 GMT
I'm using access 2002 and I'm trying to automate a procedure using a macro.
The macro essentially exports a query as html, but asks me everytime if I
want to overwrite the old file?

How do I turn the overwrite confirmation off?
kasab - 19 Apr 2005 11:23 GMT
Anthony -

Set Warnings = No should do this for your macro.  Make this the first line
of the macro.
HTH

> I'm using access 2002 and I'm trying to automate a procedure using a macro.
> The macro essentially exports a query as html, but asks me everytime if I
> want to overwrite the old file?
>
> How do I turn the overwrite confirmation off?
Anthony - 19 Apr 2005 12:24 GMT
This didn't work, can you think of another way? I looked into deleting the
html file first inside the macro but that doesn't appear to be working
either.
Thanx for your prior post too!

> Anthony -
>
[quoted text clipped - 7 lines]
> >
> > How do I turn the overwrite confirmation off?
kasab - 19 Apr 2005 13:34 GMT
Anthony -

Sorry.  Have you stepped through the macro, and where is this happening?  
Maybe you could convert the macro to code and post the code? I'm out of my
depth here :)

> This didn't work, can you think of another way? I looked into deleting the
> html file first inside the macro but that doesn't appear to be working
[quoted text clipped - 12 lines]
> > >
> > > How do I turn the overwrite confirmation off?
Anthony - 19 Apr 2005 15:09 GMT
actually i've since got it working.
I used the "sendkeys" action and used "y" (for yes) to accept the overwrite.
it works perfectly now.
thanx for your time :)

> Anthony -
>
[quoted text clipped - 18 lines]
> > > >
> > > > How do I turn the overwrite confirmation off?
Tim Ferguson - 19 Apr 2005 18:28 GMT
> I'm using access 2002 and I'm trying to automate a procedure using a
> macro. The macro essentially exports a query as html, but asks me
> everytime if I want to overwrite the old file?

First of all, this has little or nothing to do with Tables and DB Design.
Still, here goes...

Second of all, just don't use macros: they are extremely limited, for
example in not handling any error conditions or program control.

Third of all, if you use VBA to do this, you can make sure to Kill the
file explicitly before rewriting it; or else give the new a new name,
perhaps based on today's date; or store away yesterday's back up, etc.

SendKeys in particular is likely to catch you out big-time sooner or
later: you don't really know what dialog is going to pop up and be
answered with a "Yes"...

    "Do you really want to install this
  <unknown email attachment> application?"

        [[Yes]]  [No] [Cancel]

All the best

Tim F
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.