Repositioning a command button

B

bILL

I have a command button which must be positioned in a
different spot on a form if the user selects a certain
action. I need the correct syntax to reposition the
control using the "cmdExit.Left =" function.

Thanks
 
F

fredg

cmdExit.Left = 100

or any number you want.
hth
Al Camp

Access measures positions using Twips, 1440 per inch.
If [SomeControl] = SomeCriteria Then
cmdExit.left = .5 * 1440
cmd.Exit.Top = 1 * 1440
Else
cmdExit.left = 2 * 1440
cmd.Exit.Top = 3 * 1440
End If
 

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