I have the following line of code on the OnClick property of a command button just to preview a report.
DoCmd.OpenReport stDocName, acPreview
Everything works fine until I close the preview screen. When done my previous form gets focus and it is not centered. I can only see half the form and must use the scroll bars to move the form into view. I tried using DoCmd.Maximise in the forms On Activate property. It works but the form seems to do a lot of jumping when loading.
Is there a form setting I can use so when I come back from a print preview screen the form is full screen?
DoCmd.OpenReport stDocName, acPreview
Everything works fine until I close the preview screen. When done my previous form gets focus and it is not centered. I can only see half the form and must use the scroll bars to move the form into view. I tried using DoCmd.Maximise in the forms On Activate property. It works but the form seems to do a lot of jumping when loading.
Is there a form setting I can use so when I come back from a print preview screen the form is full screen?