How to determine last selected row in subform

Banaticus

Registered User.
Local time
Yesterday, 23:20
Joined
Jan 23, 2006
Messages
153
How do I tell which row was last selected in some record? I see that, when looking at a table/form based on a table/subform based on a query/etc., there is a black arrowhead next to the last row that had focus. How do I tell which one this is? And, more importantly, how do I reference information from this? Something like this
Code:
Private Sub Button_Click()
   Some control on a form = subform.lastselectedrow.field
End Sub
 
The record in the SubForm with the arrowhead next to it is also the Current record. Any reference to the SubForm record will return data from the this current record.
 

Users who are viewing this thread

Back
Top Bottom