Desperate to get issue resolved. Please help.

D

dbl

Hi when I send reports to Excel all the field headings go back to the field
names in the qry/table even though I have change them in caption, plus they
also go back to the table lay out order.

How do you stop the headings and field order on the report being changed
when the report is exported to Excel?

Sorry to have posted this twice but I am desperate for some help with this.

Thanks Bob
 
K

Ken Snell \(MVP\)

Column headings that are put into the EXCEL worksheet are the names of the
fields from the report's RecordSource. Assuming that you're using a query
for the report, you'll need to use aliases for the fields. Captions are not
read by the export process.

If you're not using a query for the RecordSource, then create a query and
use it instead of the table.

To make an alias for a field:
in design view: MyNewName: TheOldName
in SQL: SELECT TheOldName AS MyNewName, ...
 

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