General information
Category:
Databases,Tables, Views, Indexing and SQL syntax
>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.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only