Main Page | Report this Page
Computers Forum Index  »  Computer - Databases - MS Access  »  Copying a table to a XLS...
Page 1 of 1    

Copying a table to a XLS...

Author Message
Mat...
Posted: Wed Oct 28, 2009 3:54 am
Guest
Hi all,

I want to dump some data in XLS without the table header information.

Information on the docmd.TransferSpreadsheet Action is telling me that
the header columns are transferred each time
http://msdn.microsoft.com/en-us/library/aa164087(office.10).aspx
"When you export a Microsoft Access table or select query to a
spreadsheet, the field names are inserted into the first row of the
spreadsheet no matter what you select in this argument."

As I really do not want the header columns what other options are
available? Is my worst case scenario looping through the table and
copying the information myself just to avoid the header information?
 
Roger...
Posted: Wed Oct 28, 2009 9:46 am
Guest
On Oct 27, 9:54 pm, Mat <matthew.... at (no spam) optusnet.com.au> wrote:
Quote:
Hi all,

I want to dump some data in XLS without the table header information.

Information on the docmd.TransferSpreadsheet Action is telling me that
the header columns are transferred each timehttp://msdn.microsoft.com/en-us/library/aa164087(office.10).aspx
"When you export a Microsoft Access table or select query to a
spreadsheet, the field names are inserted into the first row of the
spreadsheet no matter what you select in this argument."

As I really do not want the header columns what other options are
available? Is my worst case scenario looping through the table and
copying the information myself just to avoid the header information?

or use the transfer() function to create the worksheet
then open the worksheet (with VBA) and delete the heading row
 
Mat...
Posted: Wed Oct 28, 2009 10:21 am
Guest
Quote:
or use the transfer() function to create the worksheet
then open the worksheet (with VBA) and delete the heading row

Yeah the looping through the table was a bit silly.
 
 
Page 1 of 1    
All times are GMT
The time now is Tue Dec 08, 2009 9:40 am