Hi
I'm trying to use this code below to move some controls within a tab control, when I uncomment the objControl.Left or objControl.Move the Controls no longer stay on their on tab.
With rsControls
.Open strSQL, ConnMain, adOpenDynamic, adLockReadOnly
Do While Not .EOF
For Each objControl In objForm.Controls
sName = objControl.Name
If sName = !FrmContName Then
If !FrmContVisible Then
On Error Resume Next
'objControl.Move !FrmContLeft
'objControl.Left = !FrmContLeft
objControl.Top = !FrmContTop
objControl.Width = !FrmContWidth
objControl.Height = !FrmContHeight
objControl.Caption = !FrmContCaption
objControl.FontSize = !FrmContFontSize
Else
objControl.Visible = False
End If
End If
Next
.MoveNext
Loop
.Close
End With
Many Thanks in advance
Phil
I'm trying to use this code below to move some controls within a tab control, when I uncomment the objControl.Left or objControl.Move the Controls no longer stay on their on tab.
With rsControls
.Open strSQL, ConnMain, adOpenDynamic, adLockReadOnly
Do While Not .EOF
For Each objControl In objForm.Controls
sName = objControl.Name
If sName = !FrmContName Then
If !FrmContVisible Then
On Error Resume Next
'objControl.Move !FrmContLeft
'objControl.Left = !FrmContLeft
objControl.Top = !FrmContTop
objControl.Width = !FrmContWidth
objControl.Height = !FrmContHeight
objControl.Caption = !FrmContCaption
objControl.FontSize = !FrmContFontSize
Else
objControl.Visible = False
End If
End If
Next
.MoveNext
Loop
.Close
End With
Many Thanks in advance
Phil