I am having trouble getting a report window to display the correct size so the user doesn't have to scroll the window. There are actually two reports that are physically the same size. With the exception of some content they are identical. I have checked all the properties of both and they are the same. I have re-sized and saved in design, layout and print preview and still can't get both to appear on the screen the same size. The weird thing about this is the report that is called first opens too big. If I just change the order in which they are called, it's always the one called first that is too big.
This code is executed in a button click event and if the user selects two other reports will open (print preview) as well. Only one of these gives me a problem depending on which one is called first, foundation labelrpt or mattress labelrpt. In this code I am using the same variable, but have used different ones. Also, have tried without the acWindowNormal and without acCmdFitToWindow. To make things even harder perhaps, this used to work, I don't know what could have changed. Hope someone can help, can't think of anything else to try.Code:If chkLawTags.Value = True Then 'open foundation label preview strDocName = "Foundation LabelRPT" DoCmd.OpenReport strDocName, acViewPreview, , , acWindowNormal DoCmd.RunCommand acCmdFitToWindow 'open mattress label print preview strDocName = "Mattress LabelRPT" DoCmd.OpenReport strDocName, acViewPreview, , , acWindowNormal End If
Thanks