M
Mika M
Hi!
My table contains two columns to save ID-number who created (ie.added) the
row into the table ("CreatorId"-column), and who was last modifier to the
row ("ModifierId"-column). These fields are not visible on the form, only in
one of the dataset's datatable, and application should maintain these fields
automatically.
It's easy to maintain "CreatorId"-columns value just to set default value
for this column to user's ID integer value intCurrentUserID like ...
ds.Tables(0).Columns("CreatorId").DefaultValue = intCurrentUserID
.... but I'm wondering how to maintain "ModifierId"-columns value ? It should
always change to 'intCurrentUserID' when this user for this ID number is
editing and saving changes, then only those updated rows in datatable this
user edited should contain intCurrentUserID value in the
"ModifierId"-column. I'm updating this datatable using DataAdapter's
Update-method.
My table contains two columns to save ID-number who created (ie.added) the
row into the table ("CreatorId"-column), and who was last modifier to the
row ("ModifierId"-column). These fields are not visible on the form, only in
one of the dataset's datatable, and application should maintain these fields
automatically.
It's easy to maintain "CreatorId"-columns value just to set default value
for this column to user's ID integer value intCurrentUserID like ...
ds.Tables(0).Columns("CreatorId").DefaultValue = intCurrentUserID
.... but I'm wondering how to maintain "ModifierId"-columns value ? It should
always change to 'intCurrentUserID' when this user for this ID number is
editing and saving changes, then only those updated rows in datatable this
user edited should contain intCurrentUserID value in the
"ModifierId"-column. I'm updating this datatable using DataAdapter's
Update-method.