I am just trying to play around with Access and SQL and I have created a simple table named Employees with one column named lastName.
I have created a simple form called Employees that has one textbox named lastName and one button named UpdateLastName.
My code so far is:
Private Sub buttonUpdateLastName_Click()
DoCmd.RunSQL "insert into employees values('" & Me.lastName & "');"
End Sub
I do not get any compilation errors, but whenever I click the UpdateLastName button, I just get blank space inserted into my Employees table.