mazluta Posted August 22, 2021 Share Posted August 22, 2021 on server module i set AutoCoIntitilaize to True i have adoConnection with cmUnknown on Mode property i use AdoDataset with simple command 'select.... where.... the DataSet found 1 records. then i change the state of the record to Edit (GeneralQry.Edit;) but the state become INSERT ??? - WHY ????? the fields name is Empty ('') the value of the Key Field is Empty (even it found by that key) ??? on the post - the ADO raise exception 'cannot insert new record with null value on user_code field... i tried the connection and build new one.... NADA. i tried remove the AdoDataSet and build new one.... NADA. this update happen in the destroy event of the MainModule. Quote Link to comment Share on other sites More sharing options...
mazluta Posted August 22, 2021 Author Share Posted August 22, 2021 i just move the update to OnBeforeDestroy and it work fine 😀😀 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.