Solved

Code for viewing report in "Report View"

Posted on 2008-06-26
6
564 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
6 Comments
 
LVL 75

Accepted Solution

by:
DatabaseMX (Joe Anderson - Access MVP) earned 300 total points
Comment Utility
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 65

Expert Comment

by:Jim Horn
Comment Utility
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

Expert Comment

by:DatabaseMX (Joe Anderson - Access MVP)
Comment Utility
jHo .... it's A2007 ... with the new "Report View' ... I think ....

mx
0
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
LVL 65

Expert Comment

by:Jim Horn
Comment Utility
oic.  wth is 'Report View'?
0
 
LVL 74

Assisted Solution

by:Jeffrey Coachman
Jeffrey Coachman earned 200 total points
Comment Utility
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
Comment Utility
Be wary of using acReportView with older versions of access, it prints the page immeadiately
0

Featured Post

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

772 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now