access+training - output to within access
Microsoft Office Training verified by visa - mastercard securecode about microsoft training company london ukadd this page to your favourites/bookmarksAdd to favourites
view a printable version of this pagePrintable version
email this page to somebodyEmail this page
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Access Training and help » access+training - Output To within Access Macros

access+training - Output To within Access Macros

The UK's most regular instructor-led training courses.
Training information: access+training · Access training · Microsoft Access Training
See also · microsoft access training · access vba courses · access database course

resolvedResolved · Low Priority · Version Standard

Output To within Access Macros

Doug has attended:
No courses

by - delegate Doug [1 post] (2008 Jan 15 Tue, 09:39) replyReply

Hi,

I am using 'Output To' in my macro to run a query and then export it into an Excel sheet.

The Excel file I am exporting into is the same one each time, hence I get the message:

"The file 'xxxxx' already exists. Do you want to replace the existing file?"

How can I set this to 'yes' as a default so I don't have to click 'yes' everytime?

Best wishes,

Doug.

Access VBA 2 day course
Version Date Location Places
available
Book Next place rate:
Card Invoice
2003 2009 Jan 8 Thu + 9 Fri Southwark 5 book now £450 £485
2003 2009 Feb 5 Thu + 6 Fri Southwark 8 book now £275 £399
2003 2009 Mar 5 Thu + 6 Fri Southwark 7 book now £345 £399
2003 2009 Apr 8 Wed + 9 Thu Southwark 8 book now £275 £399
2003 2009 May 7 Thu + 8 Fri Southwark 8 book now £275 £399
2003 2009 Jun 4 Thu + 5 Fri Southwark 8 book now £275 £399
Full Schedule: See all 11 Access VBA course dates.
Bookings currently available until 5th November 2009.

RE: Output To within Access Macros

by - trainer Carlos gold contributer[479 posts] (2008 Jan 29 Tue, 14:02) replyReply

Hi Doug

There is a line of code in VBA that suspends any Warnings/Alerts.

In the Macro just before your Output To code line try using

Application.DisplayAlerts=False

And immediately after the Output To code line use

Application.DisplayAlerts=True

Hope this helps

Carlos


Related articles

· Get More Out of MS Access Courses
· Tips for designing databases in Microsoft Access
· Access Database Optimization: First Normal Form
· Discover the Secrets within Your Business through Microsoft Access Training
· Access VBA Training Adds Power to your Databases

Access tip:

Create calculated fields that work out your age

You can uset eh year function to work out the year from NOW function and then subtract it with your date of birth type field

Age=Year(Now( ))-Year([DoB])

View all Access hints and tips

Rate this page:
4.0/5 (3 votes cast)
Institute of IT Training - Accredited Training Provider Microsoft Certified Partner
microsoft office
Microsoft Office Specialist Authorised Testing Centre (MOS and MCAS)

Prodigy Platinum Learning Partner

Institute of IT Training - Accredited Training Provider Association of Computer Trainers Valid HTML 4.01 Transitional
Valid CSS Markup

secure online payments - visa - mastercard

Mini sitemap. These are the main areas of our web site. Full sitemap.

Training by application Main information pages See also

Access courses
DreamWeaver courses
Excel courses
MS Project courses
Outlook courses
PowerPoint courses
VBA courses
Word courses
(more...)

Public scheduled courses
On-site training
Closed company courses

Microsoft Office training
Pricing and availability
Training schedule
Training venues

Access training
Dreamweaver training
Excel training
MS Project training
PowerPoint training

London Computer Training
Computer Training London

Microsoft Access training
Microsoft Excel training
Microsoft Project training
Microsoft Outlook training
Microsoft Powerpoint training
Microsoft Word training

Time Management Course London

Interested in Access training? Please see the following pages:
microsoft access courses · microsoft training access course
microsoft+access+training · access courses in london

Training Information

Training Articles

AddThis Social Bookmark Button What's this?
Add to Del.icio.us Add to Facebook Add to Digg Add to Reddit Add to Google Add to Yahoo Add to Diigo Add to Mr. Wong Add to Linkarena Add to Power Oldie Add to Folkd Add to Jumptags Add to Upchuckr Add to Simpy Add to StumbleUpon Add to Slashdot Add to Netscape Add to Furl Add to Spurl Add to Blinklist Add to Blogmarks Add to Technorati Add to Newsvine Add to Blinkbits Add to Ma.Gnolia Add to Smarking Add to Netvouz