I have a form of which when I click on a button, I want the value of a text box on the form to be placed into a table.
So far, once the button is pressed it opens up the table on a new record. However, I am not sure how to add the data into the table.
Next_Appointment_ID (on the form) stores the value that I want to be inputted into the table
Payment_ID is the field on the table that I want the data to be saved to.
Code so Far:
Private Sub Command46_Click()
DoCmd.OpenTable "Payment", acViewNormal, acEdit
DoCmd.GoToRecord , , acNewRec
Payment_ID = Next_Appointment_ID
End Sub
Help me Please!