M
Mike
Thank you in advance for looking at this problem, its driving me
crazy......not to mention !%^#^$%#
I have a form with over 150 text box fields. I would like a function that
goes throught every text box field and sets the locked value to True. I
need to control certain fields out of the 150 based upon who is using the
form.
Note that my field names are not indexed. They have different names like
TankNumber, Diameter, etc..
In my example below I say "accessobject.textbox(i)" I am not sure what to
call this to get at each text box field via an index of some sort. Can
anybody help? This is driving me crazy, I have seen something like this
done but can't find where I seen this.
Example:
Call GetAccessTextBoxObjects ??????
For i = 1 to 150
accessobject.textbox(i).Locked=True
next i
select case t
case "ENGR"
accessobject.textbox(5).Locked=False (or same as) TankNumber.Locked
= True
accessobject.textbox(8).Locked=False (or same as) Diameter.Locked =
True
accessobject.textbox(12).Locked=False (or same as) Height.Locked =
True
case "EHS"
accessobject.textbox(15).Locked=False (or same as) SafetyRoof.Locked
= True
accessobject.textbox(28).Locked=False (or same as)
Registration.Locked = True
accessobject.textbox(61).Locked=False (or same as)
PayRegistration.Locked = True
else else
end select
Thank you in advance for any help,
Mike
crazy......not to mention !%^#^$%#
I have a form with over 150 text box fields. I would like a function that
goes throught every text box field and sets the locked value to True. I
need to control certain fields out of the 150 based upon who is using the
form.
Note that my field names are not indexed. They have different names like
TankNumber, Diameter, etc..
In my example below I say "accessobject.textbox(i)" I am not sure what to
call this to get at each text box field via an index of some sort. Can
anybody help? This is driving me crazy, I have seen something like this
done but can't find where I seen this.
Example:
Call GetAccessTextBoxObjects ??????
For i = 1 to 150
accessobject.textbox(i).Locked=True
next i
select case t
case "ENGR"
accessobject.textbox(5).Locked=False (or same as) TankNumber.Locked
= True
accessobject.textbox(8).Locked=False (or same as) Diameter.Locked =
True
accessobject.textbox(12).Locked=False (or same as) Height.Locked =
True
case "EHS"
accessobject.textbox(15).Locked=False (or same as) SafetyRoof.Locked
= True
accessobject.textbox(28).Locked=False (or same as)
Registration.Locked = True
accessobject.textbox(61).Locked=False (or same as)
PayRegistration.Locked = True
else else
end select
Thank you in advance for any help,
Mike