|
-
Jun 15th, 2000, 10:17 PM
#1
Thread Starter
Junior Member
Please help..
I have used a datagrid to display records from an ADO recordset. What I need to be able to do is delete the currently selected record from the recordset.
I have used the following code to determine the record the user has selected:
DieSelected = datagridBookInDieNew.Columns("Order_ID").CellValue(datagridBookInDieNew.Bookmark)
The selected record is then transferred into another table but I need to be able to delete it from the table it was in..
Any help greatly appreciated
-
Jun 15th, 2000, 11:15 PM
#2
Frenzied Member
The ADO recordset object has a delete method, you just need to make sure that the recordset is pointing to the row you want to delete.
recordset.Delete adAffectCurrent ' deletes current record
recordset.Delete adAffectGroup 'deletes records that satisfy the current fiter property setting
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|