In a button I add the following code
Code: Select all
sequence:= sequence + 1;
Msquery1.close;
MSQuery1.params[0].value:= 1;
MSQuery1.Open;
MSQuery1.Edit;
MSQuery1code_id.value:= sequence;
MSQuery1last_name.value:= 'Robert';
MSQuery1.Post;
For this code not to be an error, this part of the code must go as follows:
Code: Select all
MSQuery1.Edit;
MSQuery1.FieldByName('code_id').Value:= sequence;
MSQuery1.FieldByName('last_name').Value:= 'Robert';
MSQuery1.Post;
Since I updated to the SDAC 9.4.4 version, the application that has worked well began to present inexplicable errors. I wasted precious time from work trying to find an explanation. Uninstall version 9.4.4 and went back to version 9.4.3 and returned everything works perfect.