Form Resize Error (2100)

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
 

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