G
Guest
Access 2002: I have a delete button on my form, and it includes this line to perform the actual delete
DoCmd.RunCommand acCmdDeleteRecor
I am getting a "No current record (error 3021)" error that occurs at this line in my code ONLY when the record being deleted is the last one on the form; it does not happen if I choose a record other than the bottom record. It does delete the record, however. It happens on all forms that use this command (and this is a routine I use on virtually every form). If I turn on my record selectors & delete the record by selecting it and pressing the "Delete" key on the keyboard, it deletes without the error
This just started after my hard drive failed and I had to reinstall Windows XP Pro and Office XP Pro. All Windows & Office updates have been applied, however. I have Jet SP 4.0.8015. This occurs even after a Compact/Repair and whether I convert this to Access 2000 or 2002.
DoCmd.RunCommand acCmdDeleteRecor
I am getting a "No current record (error 3021)" error that occurs at this line in my code ONLY when the record being deleted is the last one on the form; it does not happen if I choose a record other than the bottom record. It does delete the record, however. It happens on all forms that use this command (and this is a routine I use on virtually every form). If I turn on my record selectors & delete the record by selecting it and pressing the "Delete" key on the keyboard, it deletes without the error
This just started after my hard drive failed and I had to reinstall Windows XP Pro and Office XP Pro. All Windows & Office updates have been applied, however. I have Jet SP 4.0.8015. This occurs even after a Compact/Repair and whether I convert this to Access 2000 or 2002.