473,385 Members | 1,838 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Access 2K export to Excel - too much data

I have an Access 2K database split into front and back. Quite often the
users want to do some data analysis that I have not created a report for so
they want to export some subset of the data into and Excel spreadsheet.
Since the data often comes from many different tables, I have decided to
create a temporary Access table, put all the data into it then use the
Docmd.TransferSpreadsheet command to output the table to a spreadsheet.

In general it works quite well. Except (here is my question) that if the
user chooses more than 255 fields to export. The temp Access table can't
have more fields than that though it isn't an issue in the target Excel
spreadsheet. Any nice solutions to this limitation?

I am considering dynamically creating the temp tables based on how many
fields are being exported and then breaking up the data into more than 1
table and exporting each temp table. This doesn't create a 'nice'
spreadsheet for the user to look at though as they have to combine sheets if
they want everything in one worksheet. Would I be better off using
automation (OLE or whatever it is called these days) to open Excel and then
write to the spreadsheet directly that way? Seems like it will be a lot of
extra work but may end up doing a better job.

Thanks in advance for your advice.

Gary.
Nov 12 '05 #1
4 3097
On Tue, 24 Feb 2004 12:52:29 +0800, "Gary Wright"
<gw*****@pd.jaring.my> wrote:

255 is a hard limit for Access. SQL Server and MSDE go far beyond
that.
In Access, two or more tables in a 1:1 relation is the only solution.
Still, a query can also not have more than 255 columns, so the same
limitation applies come time to report on all this data.

Perhaps a relational database would apply? Where the one worksheet is
transformed to a dozen or so tables?

-Tom.

I have an Access 2K database split into front and back. Quite often the
users want to do some data analysis that I have not created a report for so
they want to export some subset of the data into and Excel spreadsheet.
Since the data often comes from many different tables, I have decided to
create a temporary Access table, put all the data into it then use the
Docmd.TransferSpreadsheet command to output the table to a spreadsheet.

In general it works quite well. Except (here is my question) that if the
user chooses more than 255 fields to export. The temp Access table can't
have more fields than that though it isn't an issue in the target Excel
spreadsheet. Any nice solutions to this limitation?

I am considering dynamically creating the temp tables based on how many
fields are being exported and then breaking up the data into more than 1
table and exporting each temp table. This doesn't create a 'nice'
spreadsheet for the user to look at though as they have to combine sheets if
they want everything in one worksheet. Would I be better off using
automation (OLE or whatever it is called these days) to open Excel and then
write to the spreadsheet directly that way? Seems like it will be a lot of
extra work but may end up doing a better job.

Thanks in advance for your advice.

Gary.


Nov 12 '05 #2
DFS
"Gary Wright" <gw*****@pd.jaring.my> wrote in message
news:c1**********@news4.jaring.my...
I have an Access 2K database split into front and back. Quite often the
users want to do some data analysis that I have not created a report for so they want to export some subset of the data into and Excel spreadsheet.
Since the data often comes from many different tables, I have decided to
create a temporary Access table, put all the data into it then use the
Docmd.TransferSpreadsheet command to output the table to a spreadsheet.

In general it works quite well. Except (here is my question) that if the
user chooses more than 255 fields to export. The temp Access table can't
have more fields than that though it isn't an issue in the target Excel
spreadsheet. Any nice solutions to this limitation?

Gary,

Excel 2000 has 256 columns (A to IV).

Can't your users get by with 255 or fewer fields of data? Sorry to say so,
but it sounds like there may be a design problem if you need to export that
many data fields.
I am considering dynamically creating the temp tables based on how many
fields are being exported and then breaking up the data into more than 1
table and exporting each temp table. This doesn't create a 'nice'
spreadsheet for the user to look at though as they have to combine sheets if they want everything in one worksheet. Would I be better off using
automation (OLE or whatever it is called these days) to open Excel and then write to the spreadsheet directly that way? Seems like it will be a lot of extra work but may end up doing a better job.

Thanks in advance for your advice.

Gary.

Nov 12 '05 #3
Gary Wright previously wrote:
The temp Access table can't
have more fields than that True
though it isn't an issue in the target Excel spreadsheet

Must be a rather special version of Excel then.
Excel has 256 columns max.

Peter Russell
Nov 12 '05 #4

"Peter Russell" <ru***@127.0.0.1> wrote in message
news:me***********************@russellscott.btinte rnet.com...
though it isn't an issue in the target Excel spreadsheet

Must be a rather special version of Excel then.
Excel has 256 columns max.

Peter Russell


Well don't I feel dumb. For some reason I have been under the impression
that Excel can have 64k columns but sure enough only 256! Guess my Access
problem isn't an issue after all since I can't export more than 256 anyways.
guess I'll have to think of something else like 2 worksheets or something.

Thanks for all the assistance anyways!

Gary
Nov 12 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: juffles | last post by:
Dear Anyone, I am a newbie so please forgive my ignorance. Is there anyway that i can migrate data from access to excel and for the data to be presented as a graph all in one single button? ...
3
by: Mads Petersen | last post by:
I'm stuck in this code. Hope you can and will help me. I launch it from excel. I have made the following code work, but not as i whant. I need the ranges to be working with something like xlDown....
5
by: erick-flores | last post by:
Hello all I have 4 tables in MS Access 2003. I want to export all these tables, with their links, to Excel. How do I export them with all the link between tables....can I do that? I know I can...
3
by: aaronward | last post by:
i have a couple of books coming on programming access - but they have not arrived as of yet. i am a fluent excel vba programmer, but i am extending out into access. I am starting with a simple export...
3
by: peteh | last post by:
Hi All; I have tried to find this info on the IBM site, but alas... We are running DB2 v9.1.1 and making extensive use of Information Integrator (now known as Websphere Federation Server?!) to...
2
by: Access user | last post by:
My apologies for crossposting this, but I did not get any response in microsoft.public.access ...
0
by: Simon | last post by:
Dear reader, How to export a hyperlink field from Access to Excel, so it is also working in Excel. In Excel you have for the Hyperlink to parts: a.. Text To Display
3
by: prashantdixit | last post by:
Hi, I am trying to export excel data to text file in a particular format. The Format for each ROW of Excel is like IMAN_ROOT/bin/import_file -f=<Column A> -type=<Column B> -d=<Column C>...
1
by: epifinygirl | last post by:
I am new to VBA writing so bear with me here. I have been searching the web but I keep finding answers in pieces which is more confusing! What I am trying to do is export a table from Access to...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.