I am trying to create a button to go from one form to an extended form I need the first form to populate the extended which i have successfully done but When I click the button I am getting error message. I assume it is a matter of doing a look up by customer Id The opening form is new contact the button when clicked should open the customer details form with the customer they entered into the first form this is code I have written any help would be greatly appreciated

Private Sub cAddNew_Click()
DoCmd.OpenForm "New Contact", acNormal, , , acFormAdd
DoCmd.Close acForm, "Customers", acSaveYes

End Sub

Private Sub Edit_Record_Click()
DoCmd.OpenForm "Customer Details", acNormal, , "Customers.[Customer ID] = " & Me.lCustList.Value, acFormEdit
End Sub