P
Paradigm
I have a number of reports and I use a cutomised toolbar with a button with
a function: -
Function printit()
On Error Resume Next
DoCmd.RunCommand acCmdPrint
End Function
I also use another function to hide all open forms when the report is opened
so that the user can only see the report until he closes it at which point a
third function unhides the forms.
The problem is this.
Every so often (and this varies with computer some more than others and some
almost every time) even though only the report is visible on the screen as
it should be, the printed report shows the underlying form and not the
report.
I cannot find a solution to this. Since I use the same toolbar for all the
reports, I do not want to have to code the report name into it since I would
then need a number of toolbars, one for each report.
Alec
a function: -
Function printit()
On Error Resume Next
DoCmd.RunCommand acCmdPrint
End Function
I also use another function to hide all open forms when the report is opened
so that the user can only see the report until he closes it at which point a
third function unhides the forms.
The problem is this.
Every so often (and this varies with computer some more than others and some
almost every time) even though only the report is visible on the screen as
it should be, the printed report shows the underlying form and not the
report.
I cannot find a solution to this. Since I use the same toolbar for all the
reports, I do not want to have to code the report name into it since I would
then need a number of toolbars, one for each report.
Alec