Importing data from Access database into excel. Column headers do not match my Access query.

ZOwNER

Board Regular
Joined
Nov 10, 2003
Messages
121
I'm drawing a blank here. I had a few options around this in 2003 but cannot seem to figure it out in 2007.

I have a database that I'd like to import into excel to run some daily reports.

By default Access uses the field name as the column header. I have entered my customer column names in the caption fields for each column. When I perform the query in Access the column headers are named the same as what I have entered into the caption field. When I then import that database into excel it changes back to naming the columns headings with the field name.

I can either have set column headers and import my data without the column names or somehow import the customer names with my data into excel. Anyone have steps on doing either of these?

Thanks
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Hi. Change the names in the SQL. Syntax within SQL in Excel like below. (As I don't use Excel 2007, I can't advise how you change the SQL other than via the VBE.) HTH, Fazza

Code:
SELECT header_in_source_table AS [renamed_how_you_want], and_another AS [new_name]
FROM source
 
Upvote 0

Forum statistics

Threads
1,214,659
Messages
6,120,786
Members
448,992
Latest member
prabhuk279

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top