Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TABLEUPDATE not updating table!!!
Message
De
19/04/1999 16:02:37
 
 
À
19/04/1999 15:58:10
Michael Haggerty
Blue Mountain Data Systems Inc
Herndon, Virginie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00209871
Message ID:
00209875
Vues:
18
Are you sure that the connection handle in use is 1? Try getting it from the cursorsetprop and making sure you are using the correct connection handle.

>To all,
>
>I'm experiencing a TABLEUPDATE problem and I need a little help. I've looked at this problem for two days and need to move on. Background:
>
>Remote View:
>CREATE SQL VIEW vwPendingApprovals;
> REMOTE ;
> CONNECTION CONVERCONN ;
> SHARED ;
> AS SELECT * FROM APPROVALS ;
> WHERE 1 = 2
>
>BUFFERING and other PROPERTIES:
>= DBSETPROP( 'vwPendingApprovals', 'VIEW', 'WhereType', 3 )
>= DBSETPROP( 'vwPendingApprovals', 'VIEW', 'SendUpdates', .T. )
>= DBSETPROP( 'vwPendingApprovals.cpkeyid', 'FIELD', 'Updatable', .T. )
>= DBSETPROP( 'vwPendingApprovals.dsubmitted','FIELD', 'DataType', 'D')
>= DBSETPROP( 'vwPendingApprovals.ddoapprove','FIELD', 'DataType', 'D')
>= DBSETPROP( 'vwPendingApprovals.droapprove','FIELD', 'DataType', 'D')
>= DBSETPROP( 'vwPendingApprovals.dnoapprove','FIELD', 'DataType', 'D')
>= DBSETPROP( 'vwPendingApprovals.dapproved','FIELD', 'DataType', 'D')
>
>llRetVal=CURSORSETPROP( "Buffering", 5, 'vwPendingApprovals' )
>
>Add data via:
>INSERT INTO vwPendingApprovals FROM MEMVAR
>
>TABLEUPDATE command:
>llTableUpdateOk = TABLEUPDATE( 1, .F., "vwPendingApprovals", laError )
>
>I consistently get a FALSE returned!!
>
>I have changed the INSERT INTO to an APPEND BLANK and REPLACE, but to no change.
>
>WHAT AM I DOING WRONG HERE? IS THIS A VFP BUG?
>
>Michael Haggerty
>
>amkhag@erols.com
>haggertym@bluemt.com
>haggertm@pwba.dol.gov
--Todd Sherman
-Wake Up! Smell the Coffee!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform