pullingteeth
Programmer
Hello, I have a form which lays out a series of address labels for printing. When the user is ready to print, they press a button, and application deals with the printing for them. Since my users are Lusers, I would like to (as part of the print process) either a) set the print margins for them (since Access print margins seem to vary from machine to machine) or b) pop up a msgbox telling them what print margins they need to set, and then pop up the print margins box for them.
There are two ways to do b, as far as I can see, except that neither works.
Option i is:
RunCommand acCmdPageSetup
and Option ii is:
SendKeys "...."
Unfortunately, using either method, I get the error message:
"The action can't be carried out while processing a form or report event."
This error message applies almost only to page setup; I can run other commands and do other sendkeys things.
So, does anybody know how to either make option a) work, or fix one of the option b) alternatives?
Thanks!
There are two ways to do b, as far as I can see, except that neither works.
Option i is:
RunCommand acCmdPageSetup
and Option ii is:
SendKeys "...."
Unfortunately, using either method, I get the error message:
"The action can't be carried out while processing a form or report event."
This error message applies almost only to page setup; I can run other commands and do other sendkeys things.
So, does anybody know how to either make option a) work, or fix one of the option b) alternatives?
Thanks!