C
CES
All,
I'm trying to figure out how to assigned a variable control value to use as an abbreviation, but I've tried various incarnations of the code below and I continue to get errors.
I was hoping that someone might be able to take a look at this and tell me what I am missing. Thanks in advance. - CES
Private Sub Form_Current()
x= "Button1"
tmp = Me.Controls(x)
If tmp.Enabled = False Then
tmp.Enabled = True
tmp.Locked = False
tmp.BackStyle = 1
Else
tmp.Enabled = True
tmp.Locked = False
tmp.BackStyle = 1
End If
End Sub
I'm trying to figure out how to assigned a variable control value to use as an abbreviation, but I've tried various incarnations of the code below and I continue to get errors.
I was hoping that someone might be able to take a look at this and tell me what I am missing. Thanks in advance. - CES
Private Sub Form_Current()
x= "Button1"
tmp = Me.Controls(x)
If tmp.Enabled = False Then
tmp.Enabled = True
tmp.Locked = False
tmp.BackStyle = 1
Else
tmp.Enabled = True
tmp.Locked = False
tmp.BackStyle = 1
End If
End Sub