I do this with:
Code: Select all
Table.Edit;
Table.FieldByName('Name').AsString := 'test';
Table.FieldByName('Address').AsString := Edit2.text;
Table.Post;
Well if I refresh the table right after this, ALL the records have been updated with "test" as the Name field!
Strange thing, if I leave Edit2.text empty, all records remain unchanged! So only if I actually change the data of the selected record, it will update all records with that field!
Bug or am I crazy?