I need some help good people!
I am trying to write a code for an add new button on one of my forms. This button is suppose to add the note that is entered on the form into the Notes table. I've done some research and tried to create the code myself but haven't been able to get it to work. This is what I have so far:
Private Sub Add_New_Click()
Dim dbs As Database
'Add this line to the CommNotes table.
Set dbs = OpenDatabase("DatabaseName", As String, As Database")
' Select specified records from FormName and add them to the CommNotes table.
dbs.Execute "INSERT INTO CommNotes"
End Sub
As you can see Im too familiar with how the constants and function work (meaning the language and how to input into the module in the correct order). Does anyone know how to do this? Can you understand what I am trying to accomplish?