Jump to content

strange behavior with ado dataset


mazluta

Recommended Posts

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.

image.thumb.png.1fcc8c989a890f9b1670056ccfaccf05.png 

 

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.

image.thumb.png.a3751fdaa5f2f1492155a3046a7cf9a9.png

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...