CharlesWhiteman
Registered User.
- Local time
- Today, 16:14
- Joined
- Feb 26, 2007
- Messages
- 421
Hi All, I am at a loss as to why my section of code is returning a Syntax Error INSERT INTO runtime error 3134?
Code:
Dim strSQLHistory As String
strSQLHistory = "INSERT INTO TblPrimaryDataHistory (PrimaryDataID, DateTime, HistoryNote, HistoryOutcome)"
strSQLHistory = strSQLHistory & " VALUES(PrimaryDataID, '" & [strRegDate] & "', HistoryNote, HistoryOutcome)"
'DoCmd.SetWarnings False
DoCmd.RunSQL strSQLHistory
'DoCmd.SetWarnings True