Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Datagrid delete problem
Message
From
15/08/2001 00:10:00
 
 
To
All
General information
Forum:
Visual Basic
Category:
Database DAO/RDO/ODBC/ADO
Title:
Datagrid delete problem
Miscellaneous
Thread ID:
00543884
Message ID:
00543884
Views:
49
Hi,

I am using VB6 with ADO 2.6 and datagrid control without ADO control.
Whenever, I delete the first record, the datagrid
update and display my record correctly, however,
on the second delete, it display that deleted
records columns as #Error

My code is shown below


rs.Open "outlet1.dbf", cn, adOpenKeySet, adLockOptimistic, adCmdTable

set datagrid.datasource = rs

rs.delete <-------- work fine, display is okay in the datagrid
rs.update
datagrid.ClearFields
datagrid.Rebind

rs.delete <-------- Display #Error for that individual row in their columns.
rs.update
datagrid.ClearFields
datagrid.Rebind

Please assist and advise. Thank you
Best Regards
Virusim
Next
Reply
Map
View

Click here to load this message in the networking platform