H
HB
Can I refer to a controls property using a string much like I can a Control.
I want to simplify the following code:
forms!frmname!ctrlnm.visible = true
forms!frmname!ctrlnm.enabled= true
forms!frmname!ctrlnm.locked= true
forms!frmname!ctrlnm.backcolor= 124
etc
I tried:
with forms!frmname!ctrlnm
.("visible") = true
etc
but it doesn't work - Is there a collection name I should be using or is
there a better way
Thjanks in advance
I want to simplify the following code:
forms!frmname!ctrlnm.visible = true
forms!frmname!ctrlnm.enabled= true
forms!frmname!ctrlnm.locked= true
forms!frmname!ctrlnm.backcolor= 124
etc
I tried:
with forms!frmname!ctrlnm
.("visible") = true
etc
but it doesn't work - Is there a collection name I should be using or is
there a better way
Thjanks in advance