Report Opens only as title bar (1 Viewer)

Uncle Ned

Registered User.
Local time
Today, 11:08
Joined
Sep 26, 2019
Messages
45
Hi All,


There is probably a very simple solution to this, but after a couple of hours of experimenting and google search, I can't find it.


When I open my DB in design mode, i.e. pressing the "Shift" key, I have no problems. The form opens ok and the report opens correctly from the CMD button - see picture 1.


However, when I run the DB as I want the user to do, then the report opens only as the title bar - see picture 2


It's basic code to open the report

DoCmd.OpenReport "rptQCWeeklyReport", acViewReport, , , acWindowNormal
 

Attachments

  • Report1.jpg
    Report1.jpg
    101.4 KB · Views: 126
  • Report2.jpg
    Report2.jpg
    93 KB · Views: 127

June7

AWF VIP
Local time
Today, 02:08
Joined
Mar 9, 2014
Messages
5,470
Looks like you have db set to hide application frame. I've never done this.

What happens if you open report with acViewPreview?
 

Uncle Ned

Registered User.
Local time
Today, 11:08
Joined
Sep 26, 2019
Messages
45
Looks like you have db set to hide application frame. I've never done this.

What happens if you open report with acViewPreview?


When I change it to acViewPreview the report doesn't pop up, but opens in the main access frame in a frame only manner as well
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 18:08
Joined
May 7, 2009
Messages
19,230
how about Maximizing the report on it's Open event.
 

June7

AWF VIP
Local time
Today, 02:08
Joined
Mar 9, 2014
Messages
5,470
Maybe report's Popup property needs to be set to Yes.
 

theDBguy

I’m here to help
Staff member
Local time
Today, 03:08
Joined
Oct 29, 2018
Messages
21,467
Hi. Just curious... Do you have any code in the Open/Load/Print/Format event of the report?
 

June7

AWF VIP
Local time
Today, 02:08
Joined
Mar 9, 2014
Messages
5,470
If you want to provide db for analysis, follow instructions at bottom of my post.
 

Uncle Ned

Registered User.
Local time
Today, 11:08
Joined
Sep 26, 2019
Messages
45
Hi. Just curious... Do you have any code in the Open/Load/Print/Format event of the report?


Yes, I have the following code On Load for the report


Me.AutoResize = False


It makes no difference though.


I have just noticed that if the main Access Window is minimised then the report only opens as the title banner, if main Access Window is open or maximised then the report opens correctly
 

Uncle Ned

Registered User.
Local time
Today, 11:08
Joined
Sep 26, 2019
Messages
45
If you want to provide db for analysis, follow instructions at bottom of my post.


I've localised all the tables (they are normally on SharePoint) and had to removed most of the data to get under the 2Mb limit. There's nothing confidentail here, so knock yourself out.


Thanks
 

Attachments

  • QualityControl - Standalone.zip
    1.7 MB · Views: 139

deletedT

Guest
Local time
Today, 11:08
Joined
Feb 2, 2019
Messages
1,218
I've localised all the tables (they are normally on SharePoint) and had to removed most of the data to get under the 2Mb limit. There's nothing confidentail here, so knock yourself out.


Thanks

I liked buttons in your forms.
Did you design them yourself?
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 18:08
Joined
May 7, 2009
Messages
19,230
here you may try.
 

Attachments

  • QualityControl - Standalone.zip
    1.8 MB · Views: 122

Uncle Ned

Registered User.
Local time
Today, 11:08
Joined
Sep 26, 2019
Messages
45
here you may try.


I gave it a try, and although it resolved one problem, your solution created another.


Because the report was open, and hidden, when the form was loaded, it did not update with the data generated in the form and therefore had blank lists or errors in the text boxes.
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 18:08
Joined
May 7, 2009
Messages
19,230
that is small issue.

before making the report visible, requery it:
Code:
    Reports("rptQCWeeklyReport").Requery
    Reports("rptQCWeeklyReport").Visible = True
 

Uncle Ned

Registered User.
Local time
Today, 11:08
Joined
Sep 26, 2019
Messages
45
that is small issue.

before making the report visible, requery it:
Code:
    Reports("rptQCWeeklyReport").Requery
    Reports("rptQCWeeklyReport").Visible = True


Although the Requery worked, if I close the report and then tried to open it again I got an error becuase the code was looking for a hidden report and couldn't find it. I could have change the close button to hide it again, but I was thinking that if I had multiple reports then would I need to have them all opened and hidden to overcome this problem.


I did come up with a solution myself, simply;

DoCmd.OpenReport "rptQCWeeklyReport", acViewPreview, , , acWindowNormal
DoCmd.OpenReport "rptQCWeeklyReport", acViewReport, , , acWindowNormal



However, I still view this as a work-around rather than getting to the root of the problem.



If anyone has any further suggestions as to the problem then please feel free to let me know.


Thanks to all those who have helped
 

Users who are viewing this thread

Top Bottom