By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,827 Members | 2,220 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,827 IT Pros & Developers. It's quick & easy.

Access Error #2046

P: 10
I created an action macro below

If True Then
ExportwithFormatting
Object Type: Query
ObjectName: test
OutjectFormat: Excel Workbook
Output File: C\Plants\Currentdata.xlxs
Auto Start: No
Output Quality: Print

I created a mainform to place the macro in a command button and this works. However, when I hide the navigation/objects in the form and run the macro-this gives me error #2046 –saying the Command or Action “Output To” is not available.

What code should be added to the macro above to have this worked.
Thank you.
Dec 3 '16 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.