A
Al
I am getting a syntax error msg on the following sql statement:
Dim db As DAO.Database
Dim rst As DAO.Recordset
Dim strSQL As String, strFieldName As String
Set db = CurrentDb()
strFieldName = Me.AuditTest.Name
strSQL = "INSERT INTO audCapital_Projects_Field (audType, audDate, audUser,
RevisedField, RevisedValue) " & _
"VALUES ('EditFrom' AS Expr1, Now() AS Expr2, NetworkUserName() AS Expr3, "
& strFieldName & ", " & AuditTest & ")"
db.Execute strSQL
Dim db As DAO.Database
Dim rst As DAO.Recordset
Dim strSQL As String, strFieldName As String
Set db = CurrentDb()
strFieldName = Me.AuditTest.Name
strSQL = "INSERT INTO audCapital_Projects_Field (audType, audDate, audUser,
RevisedField, RevisedValue) " & _
"VALUES ('EditFrom' AS Expr1, Now() AS Expr2, NetworkUserName() AS Expr3, "
& strFieldName & ", " & AuditTest & ")"
db.Execute strSQL