473,795 Members | 2,922 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Extracting data from Excel into Access Table

Here is an issue i've been trying to figure out which i do not have an
answer to. Basically i have an excel spreadsheet which has data that
i copy and paste from another resource. I also created an excel object
in a module in access which directly links to the excel spreadsheet.

The data in excel varies from day to day. i.e.(Spreadshee t will have
data from 6/1/05 - 6/4/05 for one day, and it will increase by one day
going forward.) How do you program in the module to tell it to take
all the data that's in excel and transfer it into the table?

Please advise. thank you.

Nov 13 '05 #1
4 5143
Consult Access's help on the TransferSpreads heet method of the Docmd
object. Your Excel object may not be necessary if you just want to
pull all the data as is into a table.

Nov 13 '05 #2
On 10 Jun 2005 06:13:17 -0700, "ph*******@gmai l.com"
<ph*******@gmai l.com> wrote:

An elegant solution is to create a linked table to your Excel file in
Access, and then use an Append query to copy the data from it to one
of the other tables.

-Tom.

Here is an issue i've been trying to figure out which i do not have an
answer to. Basically i have an excel spreadsheet which has data that
i copy and paste from another resource. I also created an excel object
in a module in access which directly links to the excel spreadsheet.

The data in excel varies from day to day. i.e.(Spreadshee t will have
data from 6/1/05 - 6/4/05 for one day, and it will increase by one day
going forward.) How do you program in the module to tell it to take
all the data that's in excel and transfer it into the table?

Please advise. thank you.


Nov 13 '05 #3
Thanks for your reply. Let me try to break down my problem more in
detail. i basically do a copy and paste from another application to
get the data into excel, and after i'm done with all the data copied
into excel, i record a macro that converts text to column and from that
i'm trying to write a module in access that will take all the
information from excel and dump it in a table. the problem with it is
that the data changes everyday, so i need to always go back to excel
and either insert a new column or row or i usually just redo my process
of copying and pasting with the new data. Please advise.

I will try the sample that you've given me and see what it does.
Hopefully that is the only code that i can use. Thank you .

Nov 13 '05 #4
Per ph*******@gmail .com:
I will try the sample that you've given me and see what it does.
Hopefully that is the only code that i can use. Thank you .


No chance whatsoever of that code even *beginning* to work for you. It was
supplied only as a departure point in figuring out how to write your own.
--
PeteCresswell
Nov 13 '05 #5

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

Similar topics

3
9249
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 only exporting to single worksheet. but i need to export data to multiple worksheets. it is very urgent to us. so please help me in code.
2
15518
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 wizard..... If I have to write vb code, where is a sample??? Or do I import the excel in to a new spreadsheet and then write some kind of querey to move the data from that table
3
1929
by: Alfred | last post by:
Hi I would like to extract only 15 records at a time from the backend in alfabetic order. Click on a button and then the next 15. Reason data must come over a 56k modem. The data is not alphabetticaly in database. Any ideas how to right such a function thanks alfred
2
2126
by: deko | last post by:
I'm wondering if anyone has come across something like this before and could offer some suggestions. I need to extract all the Single values packed in a Long Binary field (4k chunks) and then export to Excel. The challenge is arranging the values in columns and rows so they can be exported and land in Excel properly for charting. The way the data is packed in the LB field can be illustrated like this:
11
11282
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, The source of all data is a very large size (100*2000) excel spread sheet In which some data types are absulotely Irelevant to access data types in my DB there fore I changed It to a number of excel sheets
0
1615
by: 8hours | last post by:
Hi, My 1st post .. I'm writing an import routine to open a dynamically uploaded excel file, import the data into an MS SQL database, save an image which is always in the same location - named 'picture4', close the file and then delete it. Text/numeric information I can manipulate no problem since I discovered I must 1st set a Named Range, however I cannot figure out how to access and extract the image and save it to the server. I've...
0
14426
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 be greater than 255 characters. 2. I have an access database. I link (not import) to the contents of the excel spreadsheet. In the design view in access, Column A has the data type "memo".
0
1108
by: Robbe Morris [C# MVP] | last post by:
We own a variety of components that work with Excel files in a web environment (of course we can't use Excel automation in a high traffic web environment). SpreadSheet Gear (great component), Syncfusion, formula one, and various others. However, none of them appear to have the capability of discovering a chart in Excel and extracting it as a byte array or offer a conversation between its discovered settings to a chart control of their...
6
4930
by: rlntemp-gng | last post by:
I need to extract information from some Excel files but am stuck with part of it: As an example, I have the following Excel File that has 3 tabbed sheets: FileName: C:\ExcelData\JulyFile1.xls SheetName: Sheet1-07032007 RowCount: 325 ColumnCount: 15 SheetName: Sheet2-07102007 RowCount: 450 ColumnCount: 25 SheetName: Sheet3-07172007 RowCount: 625 ColumnCount: 45 (I have 7 other Excel files with similar attributes)
0
9672
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10439
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10215
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7541
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6783
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5437
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5563
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2920
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.