Hello !
I have:
1) a table (T) with fields (F1, F2, .... , Fk, .... Fn). I do not know "n"
2) a form (F) bounded to this table
I know that I have a control bounded to field Fk.
How I can find what control is ?
Thank you.
Something like this:
I have:
1) a table (T) with fields (F1, F2, .... , Fk, .... Fn). I do not know "n"
2) a form (F) bounded to this table
I know that I have a control bounded to field Fk.
How I can find what control is ?
Thank you.
Something like this:
Code:
Dim MyCtl As Control
Dim ctl As Control
For Each ctl In Controls
If ctl [COLOR=Red]IsBoundedToFieldFk [/COLOR]Then
Set MyCtl = ctl
Exit For
End If
Next ctl