My club management access database has been developed by several owners and through several different access versions - I am the latest owner and am on 2002 SP3.
The main membership form includes custom buttons to Add or Delete new memebrs in VBA. The Delete code includes a requery that restarts the form from record 1. The users would like to simply go to the next or perhaps the previous record following the deletion.
If I remove the requery, the current record is displayed with all fields marked as "Deleted".
Experimenting, I could test for a unique piece of data from the next record - for example using
Application.DoCmd.RunCommand acCmdRecordsGoToNext
but am a bit stuck from then on ...
This problem (feature ?) must be quite common - is there an accepted best practice to delete the current record and move to the next or previous record from within a form ?
Many Thanks
Helmpost
The main membership form includes custom buttons to Add or Delete new memebrs in VBA. The Delete code includes a requery that restarts the form from record 1. The users would like to simply go to the next or perhaps the previous record following the deletion.
If I remove the requery, the current record is displayed with all fields marked as "Deleted".
Experimenting, I could test for a unique piece of data from the next record - for example using
Application.DoCmd.RunCommand acCmdRecordsGoToNext
but am a bit stuck from then on ...
This problem (feature ?) must be quite common - is there an accepted best practice to delete the current record and move to the next or previous record from within a form ?
Many Thanks
Helmpost