?
Solved

Code for viewing report in "Report View"

Posted on 2008-06-26
6
Medium Priority
?
575 Views
Last Modified: 2013-11-28
Hello,

Currently I have the following code to view my report

DoCmd.OpenReport "rptResults", acViewPreview, , sFilter

That code brings up the report in "Print Preview" view. Could you please help me out with the pre-built code which will bring out the report in "Report View"?

Thanks and appreciate your help!
0
Comment
Question by:Dingo212
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 75

Accepted Solution

by:
DatabaseMX (Joe Anderson - Microsoft MVP, Access and Data Platform) earned 1200 total points
ID: 21878468
Maybe

acReportView

The correct syntax should be available in the Intellisense drop down when you type the code in VBA

docmd.OpenReport "rptResults",    
right after the comma                 ^

you should get a drop down list of options ...
0
 
LVL 66

Expert Comment

by:Jim Horn
ID: 21878573
DoCmd.OpenReport "Report Name", acViewDesign

>which will bring out the report in "Report View"?
Just to play devil's advocate here, why do you want to progammatically open a report in Disign View?
0
 
LVL 75
ID: 21878590
jHo .... it's A2007 ... with the new "Report View' ... I think ....

mx
0
The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

 
LVL 66

Expert Comment

by:Jim Horn
ID: 21878639
oic.  wth is 'Report View'?
0
 
LVL 74

Assisted Solution

by:Jeffrey Coachman
Jeffrey Coachman earned 800 total points
ID: 21878644
Dingo212,

MX's intellisense tip should have gotten you the answer, ...but just in case here it is:
Docmd.OpenReport "YourReport", acViewReport

JeffCoachman
0
 
LVL 2

Expert Comment

by:larowlan
ID: 24276861
Be wary of using acReportView with older versions of access, it prints the page immeadiately
0

Featured Post

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

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

As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
If you need a simple but flexible process for maintaining an audit trail of who created, edited, or deleted data from a table, or multiple tables, and you can do all of your work from within a form, this simple Audit Log will work for you.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

752 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