Button not working

dtreeves

New member
Local time
Today, 11:17
Joined
Dec 17, 2009
Messages
9
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
 
I've set a Trusted Location, but setting the Pop Up property to Yes didn't help. All that did, actually, was cause some difficulty in allowing me to view the form in Design View.
Perhaps it is something with the Record Source property?
 

Users who are viewing this thread

Back
Top Bottom