?
Solved

Linking Excel file to Access when the first line doesn't contain column headings

Posted on 2013-12-29
2
Medium Priority
?
314 Views
Last Modified: 2013-12-30
Hi.  I have an Excel file (sample attached) where my heading rows are on the 3rd line.  If I wanted to be able to link this to Access, how do I let it know my column headings aren't in the first row, but rather the third?
sample.xlsx
0
Comment
Question by:daisypetals313
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 11

Accepted Solution

by:
John Easton earned 2000 total points
ID: 39744997
The only way I can see to do what you want is to create a named range.  To do this, in Excel, select the data and the headings.  Then in the box which has the cell reference delete the cell reference and type a name e.g. mydata.

When importing to access you can then choose to import Worksheets or Named Ranges.  Select named ranges, then in the list pick the range you created above.  Then on the next screen tick first row contains headings.
0
 

Author Closing Comment

by:daisypetals313
ID: 39746212
Thanks!  Quick and easy solution and did what I needed.
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
After seeing numerous questions for Dynamic Data Validation I notice that most have used Visual Basic to solve the problem. This suggestion is purely formula based and can be used in multiple rows.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

719 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question