I need code that opens a form called "Add payments". and clicks on a button called "Add_new_Payment" then closes the form.
I tried this but it doesn't work, it comes up with a syntax error
Private Sub Command51_Click()
Call Forms."Add_Payment".Add New Customer_Click
End Sub
Any help appreciated