E
Eugene via AccessMonster.com
Hi all,
Please tell me if anyone of you has an idea of how object's HEIGHT property
is different from the TOP in terms of scaling or units of measure? What I am
trying to accomplish is like getting 2 subforms resized to fit screen but at
the same time keep lower object's height unchanged:
Before:
+-------------------+
| |
+-------------------+
| |
+-------------------+
After:
+-------------------+
| |
| |
| |
+-------------------+
| |
+-------------------+
Sub Form_Open '--- Just to resize height
DoCmd.Maximize
Me.object1.Height = Me.WindowHeight - me.object2.height - 50
Me.object2.Top = Me.object1.Top + Me.object1.Height + 50
End Sub
Running this code generates run-time error 2100 (The control or subform is
too large for this location).
Who's got a clue for this?....
Please tell me if anyone of you has an idea of how object's HEIGHT property
is different from the TOP in terms of scaling or units of measure? What I am
trying to accomplish is like getting 2 subforms resized to fit screen but at
the same time keep lower object's height unchanged:
Before:
+-------------------+
| |
+-------------------+
| |
+-------------------+
After:
+-------------------+
| |
| |
| |
+-------------------+
| |
+-------------------+
Sub Form_Open '--- Just to resize height
DoCmd.Maximize
Me.object1.Height = Me.WindowHeight - me.object2.height - 50
Me.object2.Top = Me.object1.Top + Me.object1.Height + 50
End Sub
Running this code generates run-time error 2100 (The control or subform is
too large for this location).
Who's got a clue for this?....