Avatar of bcreen
bcreen
Flag for United States of America asked on

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

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?

Microsoft DevelopmentMicrosoft Access

Avatar of undefined
Last Comment
Jeffrey Coachman

8/22/2022 - Mon
Jeffrey Coachman

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
bcreen

ASKER
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?
Jeffrey Coachman

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
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
bcreen

ASKER
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!
ASKER CERTIFIED SOLUTION
Jeffrey Coachman

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.