ReportPreview stay behind other forms

N

nieurig

Hello Folks,
i like to preview a report, but the opened window
stay always behind the other forms of my application.

The preview was opened by:

DoCmd.OpenReport "B_Rechnung", acPreview, _
, "IDRechnung = " & CStr(RechnungID)

and the PreviewWindow opens
(but behind all other forms :-().
Trying to brint the PreviewWindow to the Top with

Reports("B_Rechnung").SetFocus

fails, because a ErrorMessage of Access 2000.

Do you have any ideas to solve the problem?

Thanks in advance.
Niels
 
Top