Information générale
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
>I want that I retrieve records, change and again save in table.
>Select * from order where order_id=123 into cursro kk
>Thisform.Grid1.RecordSource="kk"
>but the Control of Grid is ReadOnly
>now How I change the Record and again save in table.
CURSORSETPROP([Buffering],3,[kk]) && enables optimistic row buffering on the cursor
The cursor can then be modified. Once this has been done, perform a GETFLDSTATE([kk]) and look for the fields that have been changed ('2'$GETFLDSTATE[kk]).
If these are present, perform an UPDATE ORDER SET field1 = kk.field1, field2 = kkfield2 etc... WHERE order.order_id = kk.order_id
Hope this helps.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement