Move Multiple Fields on a Form

Ray Stantz

Registered User.
Local time
Today, 13:21
Joined
Nov 16, 2006
Messages
63
Hi all, i am aware of the method used to move a control to the left or adjust its height/width but is there a way to move fileds down to a specifc location using VBA? I've looked everywhere but couldn't find an answer.


Thanks.
 
Hi all, i am aware of the method used to move a control to the left or adjust its height/width but is there a way to move fileds down to a specifc location using VBA? I've looked everywhere but couldn't find an answer.
For a control:

Code:
Me.YourControlName.Left = ValueInTwips
Me.YourControlName.Top = ValueInTwips

You have to give it the value in twips (1440 to an inch). So, I make it easy on myself. For example I will go:


Code:
Me.YourControlName.Left = 3 * 1440
Me.YourControlName.Top = 2.25 * 1440
 

Users who are viewing this thread

Back
Top Bottom