Solved

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

Posted on 2010-11-16
5
955 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
<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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

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…
Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

771 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