C
Chris
Hi Group,
I would like to position my controls using code. When I set the variable to
= the control name by using the controlname the code works fine. However, I
would like to reference the controlname as a variable
So instead of
strTxt1 = me.billingAddress
I would like
strBookmark1 = me.txtBilling address
strtxt1 = strBookmark1
Current code extract.
intleft = 400
intTop1 = 500
intTop2 = 1000
Set strTxt1 = me.txtBillingAddress
strTxt1.Left = intleft
strTxt1.Top = intTop1
strTxt1.Visible = True
Set strlbl1 = Me.lblBilling
With strlbl1
.Left = intleftLabel
.Top = intTop1
.Visible = True
End With
Set chk1 = Me.chkBillingAddress
With chk1
.Left = intleftLabel
.Top = intTop1
.Visible = True
End With
I would like to position my controls using code. When I set the variable to
= the control name by using the controlname the code works fine. However, I
would like to reference the controlname as a variable
So instead of
strTxt1 = me.billingAddress
I would like
strBookmark1 = me.txtBilling address
strtxt1 = strBookmark1
Current code extract.
intleft = 400
intTop1 = 500
intTop2 = 1000
Set strTxt1 = me.txtBillingAddress
strTxt1.Left = intleft
strTxt1.Top = intTop1
strTxt1.Visible = True
Set strlbl1 = Me.lblBilling
With strlbl1
.Left = intleftLabel
.Top = intTop1
.Visible = True
End With
Set chk1 = Me.chkBillingAddress
With chk1
.Left = intleftLabel
.Top = intTop1
.Visible = True
End With