Here is part of the coding:
Private Sub Edit_Click()
stDocName = "DataEntry_Staff_Edit"
stStaffCode = (How can I get a value from form?? let's say I would like to get the staff code from a text box "StaffCode" from a form "DataEntry_Staff")
DoCmd.OpenForm stDocName, acFormEdit, acWindowNormal