Using Access2000:
Question:
frm with 52 weeklabels, I have to run a function based on the weeklabel which is hit. But I don't like to have 52 clickEvents, so I'm searching for a better way.
In a treeview I used the way like this:
Set Treeview1.SelectedItem = Treeview1.HitTest(X, Y)
Now I thougt to use the same principe in the details as follows:
Private Sub Details_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
MsgBox Details.HitTest(X, Y)
End Sub
But this gives an error by compiling: can't find method or...
Question:
frm with 52 weeklabels, I have to run a function based on the weeklabel which is hit. But I don't like to have 52 clickEvents, so I'm searching for a better way.
In a treeview I used the way like this:
Set Treeview1.SelectedItem = Treeview1.HitTest(X, Y)
Now I thougt to use the same principe in the details as follows:
Private Sub Details_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
MsgBox Details.HitTest(X, Y)
End Sub
But this gives an error by compiling: can't find method or...