Solved

Export Access to EXCEL problem

Posted on 2014-03-21
3
246 Views
Last Modified: 2014-05-14
I have an ACCESS database that exports 4 queries to EXCEL. I delete the worksheets before each export. This has been in use for about 6 months.
The size of one of the queries increased from 95 rows to 101 rows (14 columns).
That one export fails.
The others still work

The worksheet does not get deleted anymore. Consequently the export creates a new sheet with the name (NAME1).

I initially got the error message 3434Cannot exceed named range. I was not exporting to a range but when I went into the EXCEL Formula-Name Manager I fould a range for each of my worksheets. I also tried deleting the Range Name when I export and although the name was deleted, my export still did not work.

Any suggestions will be greatly appreciated.

Thankss
0
Comment
Question by:nickmark
  • 2
3 Comments
 
LVL 49

Expert Comment

by:Gustav Brock
ID: 39945048
You can import or link a Named Range but you cannot export to it:
A string expression that's a valid range of cells or the name of a range in the spreadsheet. This argument applies only to importing. Leave this argument blank to import the entire spreadsheet. When you export to a spreadsheet, you must leave this argument blank. If you enter a range, the export will fail.
/gustav
0
 

Author Comment

by:nickmark
ID: 39945091
Thanks so much Gustav. I did not do a good job with my original post.

I am not exporting to a range, I am exporting a query to a worksheet. I do not use ranges at all but if I go to the "Formula tab" - "Name Manager" it lists each of my worksheets from A1 to the last row/column.

I tried to delete the Named Range and the delete worked but the export still failed.

This problem began when I increased the size of the export by a few rows.
0
 
LVL 49

Accepted Solution

by:
Gustav Brock earned 500 total points
ID: 39945158
I would try with a new worksheet.

/gustav
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.

760 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

18 Experts available now in Live!

Get 1:1 Help Now