Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2003-10-28
1
Medium Priority
?
794 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 750 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

Technology Partners: 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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Suggested Courses

721 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