Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Export Access table to Excel without column headers

Status
Not open for further replies.
Feb 19, 2006
28
GB
Hey Folks!

How would I achieve the above?

Everything I have tried so far has yielded no result.

All I want to do is to have access determine a filename to save as (from a form) and export a table to that filename WITHOUT the column headers.

Any help would be great :)

Thanks
 
Would a CSV file suit, it can be opened by Excel?
 
I would prefer not to, as it ends up with a customer and they specified Excel.

I'm trying to remove any manual intervention from the process, to eliminate any chance of human error.

Cheers :)
 
It seems to me that you will need to use a little automation. You can OutputTo CSV and openn and save as XLS, or you can export xls and use automation to delete the first row. I do not think you can use TransferSpreadsheet without a header row.
 
Why can't you use
Code:
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, "query Name", "Filename",[COLOR=red]False[/color]
 
it doesn't work, it still places the column header in the file...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top