Solved

Open report using VBA in normal view without printing?

Posted on 2011-02-18
5
711 Views
Last Modified: 2012-08-14
I am new to using reports in Access and I am trying to open the report using VBA without printing.

From searching the web the only way I can find to do this is by using:  docmd.OpenReport "Name", 'acViewPreview'. I don't want to display the report in print preview mode, just the standard report view as if I had clicked on the object manually.
0
Comment
Question by:wipnav
  • 2
  • 2
5 Comments
 
LVL 75
ID: 34928104
These are your options ... see image

mx
Capture1.gif
0
 
LVL 75
ID: 34928121
"as if I had clicked on the object manually."
That is the same a Print Preview.

Normal ... will directly print the report to printer ...

mx
0
 
LVL 1

Author Comment

by:wipnav
ID: 34928136
I'm on 2007 and when I double click the report object it opens in a full screen and my ribbon does not change to print/preview mode.

Print preview mode splits the report into multiple pages if the column widths are too great.
0
 
LVL 77

Accepted Solution

by:
peter57r earned 500 total points
ID: 34928151
Use acViewReport instead of acViewPreview
0
 
LVL 1

Author Closing Comment

by:wipnav
ID: 34928207
Thank you. I didn't see that option at the bottom of the list =P
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

In the article entitled Working with Objects – Part 1 (http://www.experts-exchange.com/Microsoft/Development/MS_Access/A_4942-Working-with-Objects-Part-1.html), you learned the basics of working with objects, properties, methods, and events. In Work…
Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

744 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

11 Experts available now in Live!

Get 1:1 Help Now