Solved

MoveSize in reports

Posted on 2006-06-20
4
238 Views
Last Modified: 2008-03-06
Hi experts,

I am trying to open a report using a cmd button on my form.  I would like the report to open up at a specified size and not completely over the top of my form.  For example, the left hand side of the report should start at 5cm.  The top of the report should start at 4cm and the width of the report should be 15cm.

I have tried using the MoveSize command in VBA and also have tried creating a macro with the movesize command but this has not worked either.  I have no idea what I am doing wrong.  In the Access help it says that it is possible to MoveSize in reports, but it is not working for me.  The report opens in full screen print preview and when I click the very top left corner (app icon) the Move and Size are greyed out.  Can anybody help?

Thank you.
Terry
0
Comment
Question by:TerenceHewett
  • 3
4 Comments
 
LVL 65

Accepted Solution

by:
rockiroads earned 500 total points
ID: 16940650
how did u use MoveSize? u need to ensure that has focus

e.g.

    DoCmd.OpenReport "Report1", acViewPreview
    DoCmd.MoveSize 1440, 2400, , 9000
0
 
LVL 65

Expert Comment

by:rockiroads
ID: 16940676
if your report is being opened maximised, then MoveSize has no affect so u could try adding this before MoveSize

DoCmd.Restore

and see what happens
0
 

Author Comment

by:TerenceHewett
ID: 17085866
Sorry Rocki for the late response.  Been on holiday for the past couple of weeks and just catching up.  I will try your suggestions, and come back with a new question if I have one.  

Best regards,

Terry
0
 
LVL 65

Expert Comment

by:rockiroads
ID: 17085884
No probs. Trust u had good hols
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
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…
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.

809 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