I get an "Object Required" error on the following code --
Have tried numerous alternatives -- nothing works. Am just trying to learn how to insert a variable into the table... ?? Thanks.
very new to VBA
=====================
...... this is in a module
Private Sub PutTheValueIntoTheTable()
Dim mySQL As String
Dim TestThingy
TestThingy = "This is the test data -- one more time."
'MsgBox " " & TestThingy
mySQL = "INSERT INTO tblTestTable (TestTextData) VALUES ('" & TestThingy.Value & "')"
DoCmd.RunSQL mySQL
End Sub