transfer table to excel

D

Dan

i would like to transfer a table from access to excel, but
i dont want the field names to be transferred along. Is
there a way to stop these field names?
 
K

Ken Snell

Set the "Has Field Names" argument to No (for TransferText and
TransferSpreadsheet actions).
 
D

Dan

ive tried that and it does not work
-----Original Message-----
Set the "Has Field Names" argument to No (for TransferText and
TransferSpreadsheet actions).

--
Ken Snell
<MS ACCESS MVP>




.
 
K

Ken Snell

Please post the macro actions that you're running, including the values for
the arguments.
 
K

Ken Snell

Here is info from Help file for the TransferSpreadsheet action:

Has Field Names
Specifies whether the first row of the spreadsheet contains the names of the
fields. If you select Yes, Access uses the names in this row as field names
in the Access table when you import or link the spreadsheet data. If you
select No, Access treats the first row as a normal row of data. The default
is No.
When you export an 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.

Note the last sentence. It appears you cannot "turn off" the field names
using TransferSpreadsheet.

You'll need to either use Automation to write the data into the EXCEL
worksheet, or use Automation after the export to delete the first row that
has the field names. Neither of these can be done via a macro; you need to
use VBA code.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top