Check the resolution differences between the PC's. Sometimes a user sets there's different and the report or form takes up the whole page because of the resolution settings.
Resolution is the same on both PCs. On one the reports opens at 100% zoom; on the other it opens with the zoom at "fit". Would like it to be 100%.
In the code event procedure where you trigger the opening of the report use this:
DoCmd.OpenReport "rptYourReport", acViewPreview
DoCmd.Maximize
This will maximize the preview report window on all PC's. Bob Scriver
Bry12345: That's a new one for me. Thanks. So, after we maximize the window we can zoom to whatever percent we want to just like the preview window's zoom combobox? Should that zoom command maybe be in the OnLoad of the report? Is that where it maybe doesn't work? Bob Scriver
I believe it won't work in the OnLoad event . . I'm pretty sure that was the issue, but didn't post it before because I wasn't sure. In earlier codings, I would have put the 'maximize' in the OnLoad Event, so the 'Zoom' is probably why I'm running it from a module now.
I've got it running in a module and it works fine. - - - -
I am having a similar problem in that a report we have used for a long time always opened at 100% but since converting to XP last week, it now opens to "fit" instead. This is an Access 2000 file opening in XP. I really don't want to go in and do a bunch of coding if I can avoid it. Does anyone know of a preference or option that may have been set that got "lost" in the upgrade?? Thanks.
p7eggyc: I don't believe that that there is an option that can be set for this but the only line of code that needs to be added is the one indicated above. DoCmd.OpenReport "rptYourReport", acViewPreview
DoCmd.Maximize
DoCmd.RunCmd acCmdZoom100
This will open the report for preview with its window maximized and its zoom set to 100%. Bob Scriver
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.