Bringing A 300+ Column Excel File Into Access

Someone asked an interesting question about Excel and Access, so
I decided to transcribe it here.

“I have an excel file with 300+ columns. I would to split and export
them to access as two table and join them. Could you please help me
with this.”

Thanks in advance,
Ma….

Here was my response:

“Hi Madhavi,

You can make 2 tables, and make some type of link identifier between them.

Then use that field to join the two tables in Access.

For example:

In column A, of your excel file enter some id, like 1 and autofill to the last record.
Then count your Excel columns to 250 paste it into 1 Access table, then paste the numbers in column
“A” into column 251 and put those into Access.

Use that number from column “A” as a linking field in Access to link the 2 tables.

Make sense?

Regards,

Erik Loebl”




By the way, if you got or are getting value from the VBA information, please click the "Donate" button to give me a small token of your appreciation, thanks!


These posts may help answer your question too...

How to Fix Run Time Error 1004 in Excel

If you work with Microsoft Excel frequently, chances ar ling for a solution. Fortunately, this error is well-documented, and there are several ways to resolve it. In this article, we’ll explore the causes of run time error 1004, practical steps to fix it, and preventive measures to reduce the chances of it happening again. What […]

How To Parse A Flat File In Excel VBA

In another post I demonstrated how to access a file on your computer using the MS Office Library. Here it is if you don’t know what I’m talking about. In this post, I am going to show you how to access the file and load it into your spreadsheet. I will do the same thing […]

How to pick a file to load In VBA

How to Pick a File in VBA: FileDialog & GetOpenFilename Explained When building Excel VBA applications, you’ll often need to let users pick a file to load in VBA. Instead of hard-coding file paths, you can use built-in dialogs that make file selection easy and user-friendly. VBA offers two main approaches: FileDialog object (flexible, customizable) […]

How can I interact with other Office applications (Excel) using VBA in Access?

Need to write your Access data or query to an Excel file? Here is the how to do it: Most people are familiar with Excel and know how to use it well (enough), and when you start talking about Access, they get scared off, and don’t know what to do anymore. Well, here you are […]


Support these sponsors:
Previous Post

How To Make An InputBox In VBA

Next Post

How To Return A Dollar Value As A Text String