Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Help for modify data in excel!

Hi,

I use excel to connect my database through the ODBC.
when the data pop up on Excel sheet, how could I make some data update in
this sheet which reflect into my database??


Thanks!

Danny


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 983
Default Help for modify data in excel!

There is a fair bit to doing something like this. What you need to do is to
use the on change event in the spreadsheet to triggeer the update. Knowing
which line you have updated you can query the database to retrive an ADODB
recordset (connected). You must return just the one specific record in the
recordset, that corresponds to the row in the excel file that you have just
modified. You can now update that record and close the connection...

If you are still interested I have a function that returns a recordset based
on an SQL statement, which I can post for you ...

HTH

"AAA" wrote:

Hi,

I use excel to connect my database through the ODBC.
when the data pop up on Excel sheet, how could I make some data update in
this sheet which reflect into my database??


Thanks!

Danny



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 593
Default Help for modify data in excel!


Jim Thomlinson wrote:
use the on change event in the spreadsheet to
triggeer the update. Knowing which line you have
updated you can query the database


Can you post the code for this part of the process, please.
Jamie.

--

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Help for modify data in excel!

YEs, PLease post it!

Thank you so much!



"Jim Thomlinson" ¦b¶l¥ó
¤¤¼¶¼g...
There is a fair bit to doing something like this. What you need to do is

to
use the on change event in the spreadsheet to triggeer the update. Knowing
which line you have updated you can query the database to retrive an ADODB
recordset (connected). You must return just the one specific record in the
recordset, that corresponds to the row in the excel file that you have

just
modified. You can now update that record and close the connection...

If you are still interested I have a function that returns a recordset

based
on an SQL statement, which I can post for you ...

HTH

"AAA" wrote:

Hi,

I use excel to connect my database through the ODBC.
when the data pop up on Excel sheet, how could I make some data update

in
this sheet which reflect into my database??


Thanks!

Danny





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2007 crashes when I try to modify a data series formula! Mike Charts and Charting in Excel 4 February 14th 08 06:23 PM
Help...Need to modify data within a column in a .csv file [email protected] Excel Discussion (Misc queries) 11 October 26th 05 11:23 PM
Help...Need to modify data within a column in a .csv file [email protected] Excel Worksheet Functions 11 October 26th 05 11:23 PM
how to modify address of data in chart Mariusz Excel Programming 3 December 30th 04 02:59 PM
Excel VBA - Read and modify the chart data range rcatarino Excel Programming 0 April 6th 04 01:19 AM


All times are GMT +1. The time now is 09:59 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"