471,337 Members | 928 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,337 software developers and data experts.

Bound True Grid dont refresh after delete

I'm having a problem with the grid not getting refreshed after
deleting a record. Even though the record is deleted from the table. I
have the following code in a Delete button event:
sql = "Delete from OrderDetails where Orderid = " &
sql = sql & " and ProductId = '" &
datOrderItems.Recordset!ProductId & "'"
gconn.Execute sql
If datOrderItems.Recordset.EOF Then
End If
datOrderItems.Recordset.Filter = "Orderid = " &

Why does the row that was deleted still show in the grid after the
delete. If I change the filter on the recordset, it will display the
new results, but when I come back to the old Order#, the same contents
will display, even the deleted record. If I close the form and load it
again, the record gone. What the heck is going on. Please help.
Thanks Michael
Jul 17 '05 #1
0 1869

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Spitz | last post: by
3 posts views Thread by Matthew Woods | last post: by
6 posts views Thread by Frank | last post: by
2 posts views Thread by skanemupp | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.