Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Delete from table via CursorAdapter
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Delete from table via CursorAdapter
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01475511
Message ID:
01475511
Views:
96
Hi,

I thought that all changes to the remote table are done via TABLEUPDATE() on the cursor created with CursorAdapter. But something does not work. I am trying to delete a record from a table (SQL Server). Here is what I do:
select CA_ALIAS    && alias assigned to the CA cursor
delete

if !tableupdate(0,.T.)
   *--- show error
endif 
The TableUpdate gives me error:
Unable to locate target record in ADODB.Recordset
What am I missing? TIA.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Next
Reply
Map
View

Click here to load this message in the networking platform