I am unable to find or set the position of controls using code. I would like to push a button and place some text objects on a form. I have not been abl to find any code for this. Is there any code for this?
I am unable to find or set the position of controls using code. I would like to push a button and place some text objects on a form. I have not been abl to find any code for this. Is there any code for this?
Yes. Here is an example of setting Top, Left, Width properties of textbox:
Me.tbxTMA.Top = 4979.952 'in twips, 1 inch = 1440 twips
Me.tbxBox1.Left = 0.25 'in inches
Me.tbxBox1.Width = 11520 'in twips, 1 inch = 1440 twips
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
Ok, that works good. Now if I have 10 boxes, and click the mouse inside one, Is there a way to determine which on I clicked in?
Try like:
Private Sub UmpID_Click()
Debug.Print ActiveControl.Name
End Sub
Why would you need this?
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
I don't need it. I was having a brain freeze moment. Thank you.