I thought that <post#=588,235>post 588,235</post#> was going to answert this, but it does not.
I often provide continuous forms where the column headings act as sort buttons. They are labels with an on click event. I use the tag property of each to specify the field name to sort by.
Private Sub VSurname_Label_Click()
fnSort (VSurname_Label.Tag)
End Sub
I have thought I should be able to find some way of knowing which label has been clicked, so that the event could be the same for each control. Something like the following, but neither of these work.
fnSort (screen.previouscontrol.Tag)
fnSort (screen.activecontrol.Tag)






