I have a form that has a dbgrid on it. I then have a button to archive the record. Once archived (Moved to another databse). I then try to delete the record using and adodb connection. (By the way everything is working great both the archiving and deletion)
However, once deleted the dbgrid is not updated. After deleting the record I use
The DBGrid is unchanged. datalisting is the source for the dbgrid. If I close the form and reopen the record has been removed.
However, If I archive 1 record then a second. The 1st will be removed but not the second. Then I archive another then the 2nd record is removed from the grid but not the third.
Any Ideas.
Thanks
ck1999
However, once deleted the dbgrid is not updated. After deleting the record I use
Code:
Datalisting.Recordset.Requery
DoEvents
Datalisting.Refresh
The DBGrid is unchanged. datalisting is the source for the dbgrid. If I close the form and reopen the record has been removed.
However, If I archive 1 record then a second. The 1st will be removed but not the second. Then I archive another then the 2nd record is removed from the grid but not the third.
Any Ideas.
Thanks
ck1999