Cannot get the Control Name dynamically

gstylianou

Registered User.
Local time
Today, 10:10
Joined
Dec 16, 2013
Messages
359
Hi, attached its a sample of my DB. I'm trtying to get the controls name into text box from Fields D1_1 To D1_6 without result.

Please help
 

Attachments

here try this:
Thanks a lot arnelgp,

Moreover, lets for example the fnControlName=D1_3. How can i refer to its value (D1_3) in order to change the textbox height dynamically depence of the name of the field?
 
There are two parts to the question because the question will be "change the (selected) textbox to a (selected) height."

For the first part, let's say fnControlName will contain or will resolve to the name of the control. Then you can use Me.Controls(fnControlName).whatever-property to touch an arbitrary control where the name is held in a variable.

The second part of the question is, how tall does it need to be? If this is a predetermined height then use

Code:
Me.Controls(fnControlName).height = predetermined-value

If you were planning to use a dynamically specified value, we would need a little more to be able to offer a solution - like how you intended to select or compute the given height.
 

Users who are viewing this thread

Back
Top Bottom