I keep getting a syntax error when I try to run the code below. However, if I paste the insert statement into a query, it works. What am I doing wrong?
Dim oRecordset As New ADODB.Recordset
Dim sSQL As String
sSQL = “INSERT INTO PAYSUMM1 (WORK, WORKH, LEAVE, LEAVEH, lngEmployeeID) VALUES (“2,355.52”, “52:30”, “1,009.50”, “22:30″, 5)”
oRecordset.Open sSQL, CurrentProject.Connection