A
Amateur
I am trying, with a commnd button in DB1, to preview a report from a DB2.
I did the following:
I created in DB2 (the one with the report) a Macro - Echo, set warnings,
Open report (in preview), Quit
I use the following code for my command button in DB1:
******************************************
Private Sub preview_Click()
Call Shell("""C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE""
""C:\cps208\sales.mdb""/Xpreviewcommission ", 0)
End Sub
******************************************
I did the same to print the the report and its working fine - why is it not
working if I only want to preview the report?
Can someone help?
Thanks
Klaus
I did the following:
I created in DB2 (the one with the report) a Macro - Echo, set warnings,
Open report (in preview), Quit
I use the following code for my command button in DB1:
******************************************
Private Sub preview_Click()
Call Shell("""C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE""
""C:\cps208\sales.mdb""/Xpreviewcommission ", 0)
End Sub
******************************************
I did the same to print the the report and its working fine - why is it not
working if I only want to preview the report?
Can someone help?
Thanks
Klaus