Solved

Access 2007 - how do I get vertical scroll bar on initial display of a reportview report?

Posted on 2010-11-16
5
963 Views
Last Modified: 2012-05-10
I have a status report, that if it were in PreView mode would be one or two pages long.  In report-view it ignores page-breaks, which is what I want. However, in report-view, when longer than what can be displayed on the screen, the user cannot initially SCROLL down further to see the rest of the report - as there is no vertical elevator bar. (report scroll-bars = BOTH)

I have built in the capability to do an "F5" to "refresh" the status report, once it is displayed in report view  (as the status changes frequently), and when it refreshes (via me.requery), it DOES have the needed vertical scroll bar.

Is there a way I can make the vertical scroll bar appear on the INITIAL display of the report, WITHOUT having to force the user to hit the F5 key, to requery?  Any ideas?

0
Comment
Question by:bcreen
  • 3
  • 2
5 Comments
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 34148111
I'm confused.

In "Print Preview" there are No scroll bars.
And I always get scroll bars in "Report View".

Your post seems to indicate the exact opposite.

In other words, whenever I open a multi-page report in Report View, I always get vertical scroll bars...

JeffCoachman
0
 

Author Comment

by:bcreen
ID: 34149639
For some reason, when the report-view report first opens, there are NO scroll bars and no way to see anything beyond what happens to be shown on the screen.

Pressing F5 (via timer and keypress code) the report does a "requery",  redisplays, and THEN it mysteriously has the desired vertical scrollbar.

Sorry for the confusion.

Does this make any sense for AC2007 to act this way?
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 34151673
This may depend of your "Document Window Option" (Overlapping or Tabbed)

But in general you will get always get scroll bars in multi-page Reports opened in Report view.

You will only get scrollbars in Print preview to move "Around" the current page (If your zoom level is high), but not to scroll through the pages.

Perhaps you have some code or a setting on your report that affects this?

Can you post a sample DB that displays this phenomenon?

Sample database notes:
1. Back up your database(s).
2. Combine the front and back ends into one database file.
3. Remove any startup options, unless they are relevant to the issue.
4. Delete any objects that do not relate directly to the issue.
5. Remove any references to any "linked" files (files outside of the database, Images, OLE Files, ...etc)
6. Remove any references to any third party Active-x Controls (unless they are relevant to the issue)
7. Remove, obfuscate, encrypt, or otherwise disguise, any sensitive data.
8. Compile the code. (From the database window, click: Debug-->Compile)
9. Run the compact/Repair utility.
10. Remove any Passwords and/or security.
11. Post explicit steps to replicate the issue.
12. Test the database before posting.

In other words, ...post a database that we can easily open and immediately see the issue.


JeffCoachman
0
 

Author Comment

by:bcreen
ID: 34156038
HI Jeff,  GREAT 12-step program :-) to submit a problem database.  I'll hang on to that for future issues.
Unfortunately, This SQL-server based system cannot be sliced and diced and still come up with enough left over to reproduce the problem.

What I may try to do, is to automatically force the first me.requery, shortly after the report opens.  It seems that THEN the desired scroll-bar appears.

Thanks again for the detailed procedure!
0
 
LVL 74

Accepted Solution

by:
Jeffrey Coachman earned 500 total points
ID: 34156378
<12-step program>
LOL.

Yes, I find it useful since "A Picture is worth a thousand words"



As far as the "Requery", goes F5 is "RefreshAll"
Try code like this on the Open, or Load event of the Report:
   
    SendKeys "{F5}"


JeffCoachman

   
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
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…

789 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