i set a company name in a global valuable gblCompName.
how to print gblCompName in a report?
I open the report in preview.
how to show the print button to print to printer?
i set a company name in a global valuable gblCompName.
how to print gblCompName in a report?
I open the report in preview.
how to show the print button to print to printer?
Presume you meant 'global variable'.
Build a custom VBA function that returns the global variable.
Function GetCompName
GetCompName = gblCompName
End Function
Call that function from a textbox: =GetCompName()
Alternatives to global variable are: 1) TempVars and 2) reference textbox on a from that has the company name.
Buttons are not available on report in Preview. Use ribbon Print or button on form to send directly to printer or right click menu.
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
Thanks June7