Syntax error in INSERT INTO ERROR 3134

Purdue15

Registered User.
Local time
Today, 03:19
Joined
Jun 12, 2013
Messages
29
I dont know what is wrong at all!

Private Sub cmdNewAdd_Click()
'add data to table
Dim strSQL As String

strSQL = "INSERT INTO CTracking(SKU, Warehouse)""Values('" & Me.ccrtSKU & "','" & Me.ccrtWarehouse & "')"

CurrentDb.Execute strSQL
End Sub
 
Thanks I am an idiot it was just the "" I had before values
 
No problem. I thought that was all, but wanted to give you the debugging method anyway. It's a common way of figuring these things out.
 

Users who are viewing this thread

Back
Top Bottom