I am trying to have a delete query run until it gets to the end of the record set, but i Keep geeting the following error when I try to run the code.
Application-defined or object-defined Error
I am using Access XP
Here is the Code
DoCmd.OpenForm "DoubleDupNoAccrual"
'Opens Form for use in deleting double dups with no Invioce
Do Until Forms![DoubleDupNoAccrual].EOF
'Causes this part of the code to repete
DoCmd.OpenQuery "DeleteDblDupNoAccrual"
'Deletes the Double Dups from the Delivery Info Table that have no accrual
DoCmd.GoToRecord acDataForm, "DoubleDupNoAccrual", acNext
'Moves to the next record in the DoubleDupNoAccrual form
Loop
'Tells program to go back up to the do command
Can someone please help me
Application-defined or object-defined Error
I am using Access XP
Here is the Code
DoCmd.OpenForm "DoubleDupNoAccrual"
'Opens Form for use in deleting double dups with no Invioce
Do Until Forms![DoubleDupNoAccrual].EOF
'Causes this part of the code to repete
DoCmd.OpenQuery "DeleteDblDupNoAccrual"
'Deletes the Double Dups from the Delivery Info Table that have no accrual
DoCmd.GoToRecord acDataForm, "DoubleDupNoAccrual", acNext
'Moves to the next record in the DoubleDupNoAccrual form
Loop
'Tells program to go back up to the do command
Can someone please help me