DCrake
Remembered
- Local time
- Today, 23:57
- Joined
- Jun 8, 2005
- Messages
- 8,626
I have an Access App that has a mainform which is the start up form.
What I want to do is to first maximize the form.
DoCmd.Maximize
Then what I want to do then is to examine the Access Window Width and Height.
Me.WindowHeight
Me.WindowWidth
then state the following
Access states that this property cannot be set as it is read only.
This is to contend with wide screen monitors over a certain size. This is purely cosmetic but I like cosmetics.
Any help would be appreciated.
David
What I want to do is to first maximize the form.
DoCmd.Maximize
Then what I want to do then is to examine the Access Window Width and Height.
Me.WindowHeight
Me.WindowWidth
then state the following
Code:
If Me.WindowHeight > x then
Me.WindowHeight = x
Endif
If Me.WindowWidth > y then
Me.WindowWidth = y
Endif
Access states that this property cannot be set as it is read only.
This is to contend with wide screen monitors over a certain size. This is purely cosmetic but I like cosmetics.
Any help would be appreciated.
David