Jumat, 27 Mei 2011

[MS_AccessPros] get control name associated with label

 

Can anyone one tell me how I can reference a control associated with a
label?

Given the form has a label called lblPodNumber and a field called
txtPodNumber

I have this:

Private Sub lblPodNumber_Click()

Call thisOrder(ActiveControl.Name, Screen.ActiveForm)

End Sub

I need to reference the name of the control that the label is associated
with, not the active control. How can I do that?

If possible, I would prefer not to use the actual label name (lblPodNumber),
as I would like to keep this as reusable as possible.

Suggestions appreciated!

Pam

[Non-text portions of this message have been removed]

__._,_.___
Recent Activity:
.

__,_._,___

Tidak ada komentar:

Posting Komentar