Selecting a column

  • Thread starter Thread starter jccastillofierro
  • Start date Start date
J

jccastillofierro

Hi!

How can I determine which column of a subform in datasheet view I've
selected (just for order by that column)? Which is the event? what
column was selected?

I'll apreciate a lot you help

Juan Carlos
 
How can I determine which column of a subform in datasheet view I've
selected (just for order by that column)? Which is the event? what
column was selected?


Use each control's GotFocus event. If you want to know the
name of the table field in the column, then you could get
the ControlSource of the form's active control:

strFieldName = Me.ActiveControl.ControlSource

Somehow I have the impression that's not what you want.
Maybe you could elaborate on what you're trying to
accomplish?
 
Back
Top