I have a button in a subform that, when clicked, will open up a different form in Add Mode. I have made the changes to the script to specify it to open in Add Mode, but when I click the button, nothing happens. I will include the script, but is there something else that could prevent it from working?
Code:
Private Sub add_associate_Click()
On Error GoTo Err_add_associate_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "add_project_associate"
DoCmd.OpenForm stDocName, , , stLinkCriteria, acFormAdd
Exit_add_associate_Click:
Exit Sub
Err_add_associate_Click:
MsgBox Err.Description
Resume Exit_add_associate_Click
End Sub