got a macro triggered from a menu, that exports a query to excel.
Works fine if a form, any form, is open, but produces the above error message if nothing open.
Couldn't you just add some lines to the macro so that it will open the form or verify to see if the form is open first and if it isn't then open it and after the export, have the macro close the form.
thanks, what I decided to do was create an 'Exports Form', on which I placed a frame with option buttons for all the various reports I needed to export.
It strange that a form has to be open for an' output to' to work though, thanks for your reply.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.