Solved

MoveSize in reports

Posted on 2006-06-20
4
233 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
No probs. Trust u had good hols
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Most if not all databases provide tools to filter data; even simple mail-merge programs might offer basic filtering capabilities. This is so important that, although Access has many built-in features to help the user in this task, developers often n…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

743 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now