G
Guest
I have an application that can run under either Access 2003 or 2007, but I
want to disable the "Write PDF" button I've placed on a form when the "Save
as PDF or XPS" add-on is not installed.
My first thought was to check for the existence of the new acFormatPDF
constant, but referring to a constant that doesn't exist generates an
untrappable compile-time error. I next thought that I'd try trapping an
error in something like Eval("acFormatPDF"), but Eval can't evaluate to an
Access system object.
Registry entries for "Save as PDF or XPS" are all under Office 12, so that
looking for them will break the application under Office 13.
Is there some way to see whether acFormatPDF exists or is contained within
Access.Constants? Is there some other way within Access itself to determine
whether the add-in is installed?
Thanks in advance for any help.
want to disable the "Write PDF" button I've placed on a form when the "Save
as PDF or XPS" add-on is not installed.
My first thought was to check for the existence of the new acFormatPDF
constant, but referring to a constant that doesn't exist generates an
untrappable compile-time error. I next thought that I'd try trapping an
error in something like Eval("acFormatPDF"), but Eval can't evaluate to an
Access system object.
Registry entries for "Save as PDF or XPS" are all under Office 12, so that
looking for them will break the application under Office 13.
Is there some way to see whether acFormatPDF exists or is contained within
Access.Constants? Is there some other way within Access itself to determine
whether the add-in is installed?
Thanks in advance for any help.