I have a subform set to continuous. Each record row has a button for opening comments specific to the record. This appears to be working fine. I would like to change the caption of the button if notes exist, otherwise no caption.
I am using the following with the event Onload on the subform.
If Len(txtESTOPSCMNTS & "") > 0 Then
btnESTOPSCMNTS.Caption = "N"
Else
btnESTOPSCMNTS.Caption = ""
End If
I am thinking that every button's caption is changing because the code is not properly identifying the correct record?