Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() 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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel 2007 crashes when I try to modify a data series formula! | Charts and Charting in Excel | |||
Help...Need to modify data within a column in a .csv file | Excel Discussion (Misc queries) | |||
Help...Need to modify data within a column in a .csv file | Excel Worksheet Functions | |||
how to modify address of data in chart | Excel Programming | |||
Excel VBA - Read and modify the chart data range | Excel Programming |