Solved

Link a field in excel worksheet to a textbox on a delphi form via ADO

Posted on 2003-10-28
1
786 Views
Last Modified: 2010-04-16
Hi all,
I have managed to create connection to the excel  worksheet and i can show it in datagrid. Now I have 2 problems:

1) how to link a particular field (name) in excel worksheet to a textbox on the delphi form.

2) any link that can show me how to add and update records in excel worksheet via ADO Connection?

Thax.
Rice Cake
0
Comment
Question by:antioch_75
[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
1 Comment
 
LVL 1

Accepted Solution

by:
JackNaif earned 250 total points
ID: 9637774
1) Instead of a normal edit box try using a dbedit. (I assume that when you say a datagrid you mean a dbgrid. dbedit is similar, but it's got one mor DB related property to choose the field it's going to contain.

2) At http://www.phidels.com/php/zip/oleexcel.zip you have a wonderfull example of how to interact with Excel but a) it's in French b) it uses Ole rather than Ado.

Anyway, if you already know how to use a normal Dataset to update and add records, and you've managed to open the excel via ADO, then updating and adding records through ADO should be a piece of cake because the TADODataSet has all the same methods and properties and events than the TDataSet. You shouldn't need too much of an example to do it.

Hope it helps:

Jack
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Create Database on Android via Delphi dbExpress 3 143
Delphi...Split view - idea? 1 145
Microsoft Access 97 and Delphi XE2 9 85
Way to create an iPhone app for my customers 8 89
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…

734 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