M
Matthew Hood
I need a little help here.
I have a form with an OK and Cancel button. Typically I place these on the
bottom right of the form and move them accordingly when the form is resized.
Using VB6 I don't have any problems, however when I try to do the same thing
with an Access form I recieve the following error:
Error Number: 2100
Description: The control or subform control is too large for this location.
The generic code I am using is:
Private Sub Form_Resize()
Dim lLeft as Long
Dim lTop as Long
lLeft = (Me.InsideWidth - command0.width - 60)
lTop = (Me.InsideHeight - command0.height - 60)
command0.move lLeft, lTop
End Sub
When I resize a textbox to the form extents, I do not recieve an error... so
why do I get on when I move the command buttons?
TIA,
-Matt
I have a form with an OK and Cancel button. Typically I place these on the
bottom right of the form and move them accordingly when the form is resized.
Using VB6 I don't have any problems, however when I try to do the same thing
with an Access form I recieve the following error:
Error Number: 2100
Description: The control or subform control is too large for this location.
The generic code I am using is:
Private Sub Form_Resize()
Dim lLeft as Long
Dim lTop as Long
lLeft = (Me.InsideWidth - command0.width - 60)
lTop = (Me.InsideHeight - command0.height - 60)
command0.move lLeft, lTop
End Sub
When I resize a textbox to the form extents, I do not recieve an error... so
why do I get on when I move the command buttons?
TIA,
-Matt