chinkygogo
New member
- Local time
- Today, 13:41
- Joined
- Aug 21, 2006
- Messages
- 7
hi there,
i have a form (to be used as a subform). I have added a button to the form so that records can be edited. attached to this button i have written a macro to unlock the text boxes (when pressed). Please find diagram attached. My problem is that the button unlocks all boxes in all records to be edited rather than the record associated with the button pressed. Here is the macro i have written:
Private Sub btEdit_Click()
UPN.Locked = False
Personnel_Number.Locked = False
Subject.Locked = False
End Sub
Thank you in advance
i have a form (to be used as a subform). I have added a button to the form so that records can be edited. attached to this button i have written a macro to unlock the text boxes (when pressed). Please find diagram attached. My problem is that the button unlocks all boxes in all records to be edited rather than the record associated with the button pressed. Here is the macro i have written:
Private Sub btEdit_Click()
UPN.Locked = False
Personnel_Number.Locked = False
Subject.Locked = False
End Sub
Thank you in advance