Discussion of open issues, suggestions and bugs regarding SDAC (SQL Server Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
- Posts: 3
- Joined: Mon 16 Jan 2006 23:41
I want to alter some field-values before the update of the query occurs.
Code: Select all
Sender: TCustomMSDataSet; StatementTypes: TStatementTypes;
Sender.FieldByName('myfield').Text := 'test';
But this doesn't work. Is this the correct way to solve this or how is this done?
- Posts: 512
- Joined: Thu 26 Jan 2006 10:06
The TCustomDADataSet.BeforeUpdateExecute event is not designed for such tasks.
Use the TDataSet.BeforePost event instead.