MoveSize doesn't work?

  • Thread starter Slez via AccessMonster.com
  • Start date
S

Slez via AccessMonster.com

I have a macro with 2 steps: OpenForm & MoveSize

The properties in OpenForm are:
View = Form
Window Mode = Dialog

When the macro runs, the form opens up in the upper left corner of the screen
no matter what dimensions I enter into the MoveSize property.

I have numerous other forms and I have never had this happen. Is there a
property in the form that may override the macro?

Any suggestions are appreciated!
Slez
 
S

Steve Schapel

Slez,

A am not sure, just some ideas to check out...

Depending on your version of Access, the form has a Moveable property,
so make sure this is set to Yes.

Do you see the same problem if you open the form with Window Mode = Normal?
 
S

Slez via AccessMonster.com

Thanks for the response!
Moveable property is set to yes.
When window mode is Normal, it opens maximized.
Strange issue...if you think of anything else that might cause this, I'll
appreciate the suggestion!
Slez

Steve said:
Slez,

A am not sure, just some ideas to check out...

Depending on your version of Access, the form has a Moveable property,
so make sure this is set to Yes.

Do you see the same problem if you open the form with Window Mode = Normal?
I have a macro with 2 steps: OpenForm & MoveSize
[quoted text clipped - 10 lines]
Any suggestions are appreciated!
Slez
 
D

dneagle via AccessMonster.com

Slez said:
I have a macro with 2 steps: OpenForm & MoveSize

The properties in OpenForm are:
View = Form
Window Mode = Dialog

When the macro runs, the form opens up in the upper left corner of the screen
no matter what dimensions I enter into the MoveSize property.

I have numerous other forms and I have never had this happen. Is there a
property in the form that may override the macro?

Any suggestions are appreciated!
Slez

Are you actually calling your macro in the forms Open Event? Just a thought.
One other thing, try to steer clear of macros. You can use VBA instead.

Private Sub Form_Open(Cancel As Integer)
DoCmd.MoveSize 123, 5, 11750, 4700
End Sub
 
S

Slez via AccessMonster.com

Of course I wasn't calling it out in the Open event! That fixed it!
Sometimes I wonder about myself! Thanks!

In your example of VBA, what do your dimensions represent? In the macro
sizes read: 2", 2", 4.5", and so on.

Slez
I have a macro with 2 steps: OpenForm & MoveSize
[quoted text clipped - 10 lines]
Any suggestions are appreciated!
Slez

Are you actually calling your macro in the forms Open Event? Just a thought.
One other thing, try to steer clear of macros. You can use VBA instead.

Private Sub Form_Open(Cancel As Integer)
DoCmd.MoveSize 123, 5, 11750, 4700
End Sub
 
D

Douglas J. Steele

When you're using the MoveSize method (as opposed to the MoveSize action),
all arguments are expressed in twips. There are 1440 twips to the inch, or
567 twips to the centimeter.

If you're currently thinking in inches, just multiple the inch value by
1440.

--
Doug Steele, Microsoft Access MVP

(no private e-mails, please)


Slez via AccessMonster.com said:
Of course I wasn't calling it out in the Open event! That fixed it!
Sometimes I wonder about myself! Thanks!

In your example of VBA, what do your dimensions represent? In the macro
sizes read: 2", 2", 4.5", and so on.

Slez
I have a macro with 2 steps: OpenForm & MoveSize
[quoted text clipped - 10 lines]
Any suggestions are appreciated!
Slez

Are you actually calling your macro in the forms Open Event? Just a
thought.
One other thing, try to steer clear of macros. You can use VBA instead.

Private Sub Form_Open(Cancel As Integer)
DoCmd.MoveSize 123, 5, 11750, 4700
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top