Hi can anyone see whats wrong with this Insert code.
Private Sub Command2_Click()
CurrentDb.Execute "INSERT INTO INSERT INTO tbltest (name,date,number,) VALUES" _
& "('" & Me!text1 & "'" _
& ",#" & Format(Me!Text2, "yyyy-mm-dd") & "#" _
& "," & Me!Text3 & ")"
End Sub
I keep getting a "Syntax error in INSERT INTO statement"
Private Sub Command2_Click()
CurrentDb.Execute "INSERT INTO INSERT INTO tbltest (name,date,number,) VALUES" _
& "('" & Me!text1 & "'" _
& ",#" & Format(Me!Text2, "yyyy-mm-dd") & "#" _
& "," & Me!Text3 & ")"
End Sub
I keep getting a "Syntax error in INSERT INTO statement"