suppress headers in query for export to Excel

  • Thread starter Thread starter lallen
  • Start date Start date
L

lallen

Is it possible to suppress the headers in a query? I'm exporting to Excel,
and I don't want the header row.

....Larry
 
bhicks11 via AccessMonster.com said:
How are you exporting? If you use VBA Transferspreadsheet method, there
is a
option to set HasFieldNames to true or false.


This argument is not used by TransferSpreadsheet when exporting to EXCEL; it
always exports the field names regardless of what you put for this argument
in your code or macro. This argument works only for imports.
 
Does that mean that there is no way to suppress the headers when exporting to
Excel?

....Larry
 
The only way I know is to use Automation and write the data directly into
the EXCEL spreadsheet file from a recordset.
 
Back
Top