Me.RecordID
refers to the RecordID
of the current record, as indicated by the black triangle in the record selector:
A Label
control on a form cannot receive the Focus
, so when you click on the label in another record the current record does not change and you keep getting the same RecordID
. Note that if you put the same code into the Click
handler for a textbox (or some other control that can receive the Focus
) then the current record will change and you'll get the RecordID
of that record.