>>>How can I...
>>>"SELECT * FROM table INTO CURSOR anycursor"
>>>and make changes to anycursor that are reflectd
>>>back to my table. Can you SELECT INTO A CURSOR VIEW?
>>
>>As far as I know, you can only change the source table if yu use a view. Queries and cursors are snapshots of the data. This means that you would need to use "select SQL view"
>
>Thanks Mike...
>How would I (code wise) change this code:
>"select * from table into cursor mycursor" to a "select view"
>so my users can edit the cursor?
CREATE SQL VIEW myview as select * from table
Then create a form using myview in the data environment.
If you dreate the view in the view designer, you can set it to allow SQL updates so that the user can edit the source data. If you do it in code you need to use SETCURSORPROP I think.
Mike
Précédent
Suivant
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