473,605 Members | 2,079 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.TransferS preadsheet 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 3118
On Tue, 24 Feb 2004 12:52:29 +0800, "Gary Wright"
<gw*****@pd.jar ing.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.Transfer Spreadsheet 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.jar ing.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.TransferS preadsheet 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.b tinternet.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
2431
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? Shankar
3
25037
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. eg. this only transferes the first record in the area. ..Fields("Uge").Value = ws.Range("A98").Value Sub SelectMaster()
5
2762
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 export the tables to Excel but I dont know if the links will export too Any ideas? Thanks in advance
3
5506
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 to a code generated excel file. My database consists of 1 table (tblErrLog) with 8 fields (numEntry, txtVZID, txtAcctNum, txtRegion, txtComments, EZInfo, txtDate, txtTime) I have the users enter data into an unbound form and submit it thru a...
3
2038
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 access Oracle and other DB2s (LUW, AS400 and z/OS). We have some requirements to integrate Excel data. In looking at our options 18 months ago (v8.2), we needed some additional Windows components (drivers and ODBC communication software) to make...
2
2422
by: Access user | last post by:
My apologies for crossposting this, but I did not get any response in microsoft.public.access http://groups.google.com/group/microsoft.public.access/browse_thread/thread/4929214ae589afd9/b11bf56313b894d4?lnk=st&q=access+export+to+excel#b11bf56313b894d4 The specific problem is mentioned in the above post, but here is a basic description of the problem. When using saved queries that are used as part of a union query, the UNION query...
0
3298
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
4063
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> -ref=<Column D> -vb -log=<Column E> Every Row of the excel should export in text with this format.
1
4238
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 Excel and run a macro (it's a formatting macro). My issue is that when Access exports the table, it resaves it and I lose the macro (The spreadsheet will be accessible to anyone so I can't just save it in the Personal workbook). When I try to copy the...
0
8009
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
7938
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8298
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6752
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
5892
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5452
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3914
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
1548
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1279
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.