473,396 Members | 2,017 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,396 software developers and data experts.

Read Data from excel & save to recordset

Hi, Good Day!

How can I read data from excel file and save them into a recordset?

Can someone help?
Thanks in advanced.

rgds,
Phoebe.
Nov 20 '05 #1
6 3296
Cor
Hi Phoebe,

Here are connection strings you can use with Ado.net and then get your excel
file in a dataset.

Recordsets are not really used anymore if it is not for upgrading reasons in
VB.net you know.

http://www.connectionstrings.com/

http://www.able-consulting.com/ADO_Conn.htm

I hope this helps a little bit?

Cor
Nov 20 '05 #2
Hello Phoebe

Had a reference in the COM components of Microsoft Office
(Version Number) Object Library in your project. Create
an instance o excel application and add a book. Then use
the Book.Open(ExcelFileName) to open the excel document.
Them select the first sheet and sheet.range("A1").text to
read the value in cell A1.

Kind Regards
Jorge
-----Original Message-----
Hi, Good Day!

How can I read data from excel file and save them into a recordset?
Can someone help?
Thanks in advanced.

rgds,
Phoebe.
.

Nov 20 '05 #3
Thanks Cor,

How can i file my excel data into dataset then?

Any example on this? Thanks again.
"Cor" <no*@non.com> wrote in message
news:uF**************@TK2MSFTNGP10.phx.gbl...
Hi Phoebe,

Here are connection strings you can use with Ado.net and then get your excel file in a dataset.

Recordsets are not really used anymore if it is not for upgrading reasons in VB.net you know.

http://www.connectionstrings.com/

http://www.able-consulting.com/ADO_Conn.htm

I hope this helps a little bit?

Cor

Nov 20 '05 #4
Thanks Jorge,

I want to open the excel file and display it in either datagrid or dataset
since i hv a few excel file with the same format but different data to be
display.

Can you help again.
Thanks.

"Jorge" <an*******@discussions.microsoft.com> wrote in message
news:58****************************@phx.gbl...
Hello Phoebe

Had a reference in the COM components of Microsoft Office
(Version Number) Object Library in your project. Create
an instance o excel application and add a book. Then use
the Book.Open(ExcelFileName) to open the excel document.
Them select the first sheet and sheet.range("A1").text to
read the value in cell A1.

Kind Regards
Jorge
-----Original Message-----
Hi, Good Day!

How can I read data from excel file and save them into a

recordset?

Can someone help?
Thanks in advanced.

rgds,
Phoebe.
.

Nov 20 '05 #5
Cor
Hi Phoebe,

I was typing it and did not know how where write the $(after or before) in
"sheet" and then I did look on msdn, the sample is there complete, the sheet
can be any tabpagename of course.

http://msdn.microsoft.com/library/de...ntodataset.asp

I hope this helps a little bit?

Cor
Thanks Cor,

How can i file my excel data into dataset then?

Any example on this? Thanks again.

Nov 20 '05 #6
Thanks Cor.

"Cor" <no*@non.com> wrote in message
news:uP**************@TK2MSFTNGP12.phx.gbl...
Hi Phoebe,

I was typing it and did not know how where write the $(after or before) in
"sheet" and then I did look on msdn, the sample is there complete, the sheet can be any tabpagename of course.

http://msdn.microsoft.com/library/de...us/dv_vbcode/h
tml/vbtskcodeexamplereadingexceldataintodataset.asp
I hope this helps a little bit?

Cor
Thanks Cor,

How can i file my excel data into dataset then?

Any example on this? Thanks again.


Nov 20 '05 #7

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

Similar topics

4
by: see_mun_lee | last post by:
I use asp to develop a web page to read an excel file containing Chinese Character then display it in the web page. Unfortunately, I cant display it!!! it will display (?????????). <META...
0
by: Oci-One Kanubi | last post by:
Everything works fine in Access, but when I double-click on the resultant Excel files the first one opens correctly, but subsequent ones, and any other Excel files I try to open, fail to display at...
1
by: Rick Brown | last post by:
After reading 30+ threads on the subject and implementing pertinent changes I still have an instance of Excel that won't close. I hope its due to my poor coding and someone can spot the error....
0
by: Peter | last post by:
I am having a problem reading an Excel file that is XML based. The directory I am reading contains Excel files that can be of two types. Either generic Microsoft based or XML based. I am reading...
2
by: Phoebe | last post by:
Hi, Good Day! Currently I have a few excel file storing different range of data. For eg. 1-100 in FileA; 101-200 in FileB; 201-300 in FileC...total 10 file. I'd like to save these set of data to...
4
by: Marco Aschwanden | last post by:
Hi I would like to 1. import an existing Excel-sheet (a template) 2. and add some data to it 3. and save it under a different name afterwards. To me it seems, that pyExcelerator does not...
3
by: maylee21 | last post by:
hi, anyone can help me figure out how to read data from a text file like this: 10980012907200228082002 and extract the data according to this kind of format: Record type 1 TY-RECORD ...
7
Merlin1857
by: Merlin1857 | last post by:
Its great producing data for users to look at in your web pages and generally that is sufficient for their needs but sometimes you may want to supply your user with the data in a form they can...
0
by: student491 | last post by:
hello, I opened the excel file by using workbook.open() method... Now i want to read the data from the excel file.. & save it into array. help out .. how to do this. Then i want to pass...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.