Microsoft's Help system has landed you in the wrong newsgroup: this
one is for the database program Microsoft Access.
Please use the dropdown box (the one that says "Access" by default)
to select a more appropriate newsgroup, microsoft.public.word for
example.
However, I strongly suspect that your document is gone forever. You
were asked if you wanted to overwrite the existing document; you said
yes; it obeyed your instructions.
For Each aob In CurrentProject.AllReports
DoCmd.OpenReport aob.name, acViewDesign
Reports(aob.name).Toolbar = "Custom 1"
DoCmd.Close acReport, aob.name, acSaveYes
Next aob
End Sub
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.