Solved

ACCESS reports appear behind form

Posted on 2012-04-13
4
330 Views
Last Modified: 2012-04-17
new preview report appears behind the form
how can i have the preview of the report appear in front of the form
0
Comment
Question by:wildm4n
4 Comments
 
LVL 47

Assisted Solution

by:Dale Fye (Access MVP)
Dale Fye (Access MVP) earned 250 total points
ID: 37842053
You should be able to do this by changing the windowmode (second to last last argument in the OpenReport method)

docmd.OpenReport "rptname", acViewPreview,,, acDialog

You might also be able to accomplish it by changing the Popup property of the report (on the Other tab of the properties dialog) to Yes.
0
 
LVL 31

Expert Comment

by:Helen_Feddema
ID: 37843856
Or hide the form when the report is previewed.
0
 
LVL 74

Accepted Solution

by:
Jeffrey Coachman earned 250 total points
ID: 37854203
Also, make sure the "Form" is not opened in Dialog or pop-up mode...
As this will prevent other windows (ie, ...your report) from opening up on top.

All in all, if the form is opened normally, ... and the report is opened from a button on the form, ...the report should be on top.
This is the standard behavior.
.
0
 

Author Closing Comment

by:wildm4n
ID: 37855289
both worked

the second solution was the best for my situation
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

807 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question