I have an access form that allows the user to browse records (< and > buttons) sorted by another field within that table (eg, all entries under a staff group, all entries under a student group).
I have added a delete button to the form using code supplied by another user of the forum (thanks to PEB):
Expand|Select|Wrap|Line Numbers
- Dim rst As Recordset
- Set rst = Me.RecordsetClone
- rst.Delete
- rst.Close
- rst.Requery
From what I can tell it works great on the first record, but any subsequent records I get the 'no current record' popup. I need it to work multiple times if other entries need to be deleted. (I also want it to give an 'are you sure yes/no' popup but that's a different issue)
Can anyone help or is more info required? :)
Cheers
Gareith