By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,072 Members | 1,168 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,072 IT Pros & Developers. It's quick & easy.

Moving a report on the screen

P: 462
In my application when a user selects some reports I display the reports on the screen one a detail and the other a summary, One report always overlays the other, is there a way to move the one of the reports to a different location on the screen in code.

May 3 '09 #1
Share this Question
Share on Google+
1 Reply

Expert 5K+
P: 8,679
@CD Tom
The following code, placed in the Open() Event of the Report will position the Report .5 inches from the Top and .5 inches from the Left of the Screen while maintaining its original Width and Height.
Expand|Select|Wrap|Line Numbers
  1. Private Sub Report_Open(Cancel As Integer)
  2.   Const conTWIPS_PER_INCH = 1440
  3.   Me.Move 720, 720, Me.Width, Me.Height
  4. End Sub
P.S. - If your intention is to have one Report always 'Remain on Top' of others, that is a different story all together.
May 3 '09 #2

Post your reply

Sign in to post your reply or Sign up for a free account.