Programatically Moving A Field...

  • Thread starter Thread starter Brett Davis
  • Start date Start date
B

Brett Davis

Hello...

I am attempting to move a field to another location on the same form through
code. So when I click a button the field txtField1 is physically moved to
another part of the form. Is this possible to do in VBA? I am using Access
2000.

Please advise...

Cheers!

Brett
 
Set the Top and Left properties of the control.

The properties are in twips, where 1440 twips = 1 inch.

This example moves the control named Text0 so it is 1" from the left of the
form, and 2" from the top of its section:
Me.[Text0].Left = 1440
Me.[Text0].Top = 2880
 
Back
Top