07-16-2019, 09:08 AM
|
#1
|
Much to learn!
Join Date: Jun 2012
Location: Georgia
Posts: 430
Thanks: 20
Thanked 4 Times in 4 Posts
|
OutputTo Macro not running
Hello,
Made a quick app this morning which uses a macro to email a report. Runs fine on my computer (Win10/access 2013). When I deploy to Station A or B (Win7/Access 2013 runtime) it gives me the following error.
The command or action 'OutputTo' isn't available now
-You may be in a read-only database or an unconverted database from an earlier version of (the project)
-The type of object the action applies isn't currently selected or isn't in the active view.
Use only commands and macro actions that are currently available for this database.
|
|
|
07-16-2019, 09:14 AM
|
#2
|
error reading drive A:
Join Date: May 2009
Location: somewhere out there
Posts: 8,569
Thanks: 68
Thanked 2,745 Times in 2,630 Posts
|
Re: OutputTo Macro not running
not all commands are available on runtime version of access.
__________________
"Never stop learning, because life never stops teaching"
|
|
|
07-16-2019, 09:24 AM
|
#3
|
I’m here to help
Join Date: Oct 2018
Location: SunnySandyEggo
Posts: 6,580
Thanks: 58
Thanked 1,443 Times in 1,424 Posts
|
Re: OutputTo Macro not running
Hi. What is the filepath you're outputting the report to? Does the user have write access/permission to it? Just curious...
__________________
Just my 2 cents...
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
|
|
07-16-2019, 09:53 AM
|
#4
|
Much to learn!
Join Date: Jun 2012
Location: Georgia
Posts: 430
Thanks: 20
Thanked 4 Times in 4 Posts
|
Re: OutputTo Macro not running
It's actually the emaildatabaseobject macro I'm using. Is that one available? I can write it in VBA, it just seemed easier for this one to do it in a macro....guess not.
|
|
|
07-16-2019, 10:02 AM
|
#5
|
I’m here to help
Join Date: Oct 2018
Location: SunnySandyEggo
Posts: 6,580
Thanks: 58
Thanked 1,443 Times in 1,424 Posts
|
Re: OutputTo Macro not running
Quote:
Originally Posted by GBalcom
It's actually the emaildatabaseobject macro I'm using. Is that one available? I can write it in VBA, it just seemed easier for this one to do it in a macro....guess not.
|
I'm not 100% certain but either EmailDatabaseObject or OutputTo should be available in runtime. Just in case, see if there's another potential cause for the issue.
__________________
Just my 2 cents...
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
|
|
07-16-2019, 10:08 AM
|
#6
|
error reading drive A:
Join Date: May 2009
Location: somewhere out there
Posts: 8,569
Thanks: 68
Thanked 2,745 Times in 2,630 Posts
|
Re: OutputTo Macro not running
you may simulate a Runtime version on your own pc.
create a new shortcut to your desktop.
locate msaccess.exe.
modify it by adding your db in enclosed double quote and /runtime, eg:
Code:
"C:\Program Files\Microsoft Office\root\Office16\MSACCESS.EXE" "d:\mydb.accdb" /runtime
see if error occurs on your macro. if it does then it is not available.
__________________
"Never stop learning, because life never stops teaching"
|
|
|
07-16-2019, 10:23 AM
|
#7
|
Much to learn!
Join Date: Jun 2012
Location: Georgia
Posts: 430
Thanks: 20
Thanked 4 Times in 4 Posts
|
Re: OutputTo Macro not running
Thanks arnelgp, I forgot about that. Another trick you helped me remember is if you just change the file extension from .accdb to .accdr it will also simulate the runtime.
Using this trick did confirm, it no longer has the functionality of 'outputTo', which is being used in Email object, and in VBA, docmd.SendObject
I tried it both ways. I do have some code I'll need to dig up to handle this.
|
|
|
07-16-2019, 10:28 AM
|
#8
|
error reading drive A:
Join Date: May 2009
Location: somewhere out there
Posts: 8,569
Thanks: 68
Thanked 2,745 Times in 2,630 Posts
|
Re: OutputTo Macro not running
careful where you dig, you might hit the gas line
__________________
"Never stop learning, because life never stops teaching"
|
|
|
07-16-2019, 10:28 AM
|
#9
|
Much to learn!
Join Date: Jun 2012
Location: Georgia
Posts: 430
Thanks: 20
Thanked 4 Times in 4 Posts
|
Re: OutputTo Macro not running
Hmm...The code I have was to send an email automatically. I'd like to have it open for the user to edit before sending. The real trick is I don't use Outlook, but rather EMClient.
It must be possible because docmd.sendobject will prepopulate the message and prepare it to be edited on my machine. But that doesn't work on others with the runtime version
|
|
|
Thread Tools |
|
Display Modes |
Rate This Thread |
Linear Mode
|
|
All times are GMT -8. The time now is 08:56 AM.
|
|