Hello,
I have a table with LastUpdated column,
users update some data there in a datagrid, for examle rows 10, 15 and 20,
the question is, is there a possible way to auto update (with current system
datetime) that field (LastUpdated) for each changed row in the
datasource???
thanks in advance!
Adriano 3 997
Adriano,
Trap the dataset's RowUpdating event and assign Date.Now to the LastUpdated
column.
Alan
"Adriano" <ad*****@tadaz.com> wrote in message
news:O0*************@TK2MSFTNGP09.phx.gbl... Hello,
I have a table with LastUpdated column, users update some data there in a datagrid, for examle rows 10, 15 and 20, the question is, is there a possible way to auto update (with current
system datetime) that field (LastUpdated) for each changed row in the datasource???
thanks in advance! Adriano
I should have had more coffee before hitting send. It should be the
DataTABLE's RowChanging event.
Grab the row that's being changed, then assign Date.Now as you wish.
Coffee. Must...get...more...coffee...
"J. Alan Rueckgauer" <vo**@dev.nul> wrote in message
news:ep**************@TK2MSFTNGP11.phx.gbl... Adriano,
Trap the dataset's RowUpdating event and assign Date.Now to the
LastUpdated column.
Alan
"Adriano" <ad*****@tadaz.com> wrote in message news:O0*************@TK2MSFTNGP09.phx.gbl... Hello,
I have a table with LastUpdated column, users update some data there in a datagrid, for examle rows 10, 15 and
20, the question is, is there a possible way to auto update (with current system datetime) that field (LastUpdated) for each changed row in the datasource???
thanks in advance! Adriano
hi Alan,
I'm a newbie,
can you please send me a code,
thanks in advance!
Adriano
"J. Alan Rueckgauer" <vo**@dev.nul> wrote in message
news:#I**************@TK2MSFTNGP10.phx.gbl... I should have had more coffee before hitting send. It should be the DataTABLE's RowChanging event.
Grab the row that's being changed, then assign Date.Now as you wish.
Coffee. Must...get...more...coffee...
"J. Alan Rueckgauer" <vo**@dev.nul> wrote in message news:ep**************@TK2MSFTNGP11.phx.gbl... Adriano,
Trap the dataset's RowUpdating event and assign Date.Now to the LastUpdated column.
Alan
"Adriano" <ad*****@tadaz.com> wrote in message news:O0*************@TK2MSFTNGP09.phx.gbl... Hello,
I have a table with LastUpdated column, users update some data there in a datagrid, for examle rows 10, 15 and 20, the question is, is there a possible way to auto update (with current system datetime) that field (LastUpdated) for each changed row in the datasource???
thanks in advance! Adriano
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: jayson_13 |
last post by:
Hi,
I need to implement a counter and i face problem of locking so hope
that u guys can help me.
I try to do test like this :
1st connection
SELECT * FROM nextkey WHERE tblname = 'PLCN'...
|
by: chan |
last post by:
how to apply online update function into program (the
effect just like Norton system work live update)
The situation is below:
I want to develop a program that contains some product...
|
by: Mike Leahy |
last post by:
Hello all,
This question is related to updating tables - is there any way to calculate or
update the values in a column in a table to the values in a field produced by
a query result? An...
|
by: robert |
last post by:
been ruminating on the question (mostly in a 390/v7 context) of
whether, and if so when, a row update becomes an insert/delete.
i assume that there is a threshold on the number of columns of
the...
|
by: Grant McLean |
last post by:
Hi
First a simple question ...
I have a table "access_log" that has foreign keys "app_id" and
"app_user_id" that reference the "application_type" and "app_user"
tables. When I insert into...
|
by: Miro |
last post by:
I will ask the question first then fumble thru trying to explain myself so i
dont waste too much of your time.
Question / Statement - Every mdb table needs a PrimaryKey ( or maybe an
index - i...
|
by: si_owen |
last post by:
Hi all,
I have a SQL query that worked fine in my project until it came to
testing. I found that the NvarChar fields I have wont accept the use of
an '
My code and query is here does anyone...
|
by: shookim |
last post by:
I don't care how one suggests I do it, but I've been searching for days
on how to implement this concept. I'm trying to use some kind of grid
control (doesn't have to be a grid control, whatever...
|
by: ARC |
last post by:
Hello all,
So I'm knee deep in this import utility program, and am coming up with all
sorts of "gotcha's!".
1st off. On a "Find Duplicates Query", does anyone have a good solution for...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
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...
|
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...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |