Programatically Moving A Field...

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
 
A

Allen Browne

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
 

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