473,405 Members | 2,282 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Data from Excel to Access

Hi all,

I need to transfer a lot of (denormalized) data from Excel To Access.
Data is totally wrong formatted for my needs. I need to transform rows and columns.
I also need to be able to specify different ranges to get what I want
So I need range A1:E34 in one able and I need range A39:P50 in another table.
After that I still will have to do some 'data-massage' in Access ...

IIRC I did see code here recently to import data AND transform rows-columns.

Thanks in advance
Arno R
Nov 13 '05 #1
3 1600
You can use the TransferSpreadsheet method.

DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel8,
"TableName", "Pathname.xls", False, "TestSheet!a1:g17"

The False argument is if the sheet has field names or not. The final
argument specifies the sheet name and range.

Nov 13 '05 #2
Thanks Tanis but the major problem is the 'transform rows and columns'.
Any other idea's ?

Arno R

"Tanis" <dn*****@accuride.com> schreef in bericht news:11**********************@o13g2000cwo.googlegr oups.com...
You can use the TransferSpreadsheet method.

DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel8,
"TableName", "Pathname.xls", False, "TestSheet!a1:g17"

The False argument is if the sheet has field names or not. The final
argument specifies the sheet name and range.

Nov 13 '05 #3
I don't think you can do it in one step. I'm working on the same thing.
What I did was upload the spreadsheet into an intermediate table as it is
with transferspreadsheet, then do an append query to move that into the
final table in the proper format. It seems to be working okay.

Robert

"Arno R" <ar***********@tiscali.nl> wrote in message
news:1114534067.1ddb6703a16ed32607d6eba0618fc5e8@t eranews...
Thanks Tanis but the major problem is the 'transform rows and columns'.
Any other idea's ?

Arno R

"Tanis" <dn*****@accuride.com> schreef in bericht
news:11**********************@o13g2000cwo.googlegr oups.com...
You can use the TransferSpreadsheet method.

DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel8,
"TableName", "Pathname.xls", False, "TestSheet!a1:g17"

The False argument is if the sheet has field names or not. The final
argument specifies the sheet name and range.

Nov 13 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: sridevi | last post by:
Hello How to export data from ms-access database to excel worksheet using ASP. mainly i need to export data to multiple worksheets. it is very urgent to us. i have a sample code which works...
2
by: Fred | last post by:
Hi. How do I import while mapping an excel table to an access table please??? I've searched around and all I can find is a software product or code that does the same thing as the access...
1
by: Steven Stewart | last post by:
I have a user who has been using Excel for a while to keep statistics and print reports. She finds using it cumbersome because of long formulas and a lot of copying and pasting. I have designed...
3
by: Mads Petersen | last post by:
I'm stuck in this code. Hope you can and will help me. I launch it from excel. I have made the following code work, but not as i whant. I need the ranges to be working with something like xlDown....
0
by: Jack | last post by:
Windows 2K Pro Access/Excel 2003 Hi there, I have a large number of password protected Excel Workbooks. The files are protected by code that runs when the workbook opens. The code asks the...
11
by: Hi5 | last post by:
Hi, I am new to access I usedto work in Oracle and Mysql. I am after a way that enables me to populate a database I designed in access with lots of data which can be sorted in excel sheets, ...
0
by: Grip | last post by:
Hi, I have gone throught the group and Microsoft's online help and have seen many suggestions but I am still seeking clarity: 1. I have an excel spreadsheet. Column A contains text that may...
7
by: semijoyful | last post by:
OS: Win XP SP2 Access version: 2003 Excel version: 2003 I am new at this, as I am sure you have gathered from this post title:) I am working on a form where users can input data in Access and...
3
by: =?Utf-8?B?YzY3NjIyOA==?= | last post by:
Hi all, I have a question for you. I have a .csv file which has many lines of data. Each line has many data fields which are delimited by ",". Now I need to extract part of data from this...
7
by: kpresidente | last post by:
Hello all, I'm trying to transfer the value of a control on an Access form to an Excel worksheet using VBA. The Access form is a single form with all the controls disabled, so that data is "read...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.