I can not for the life of me see what is wrong with this, can someone else??
Dim LogError As String
LogError = "INSERT INTO tblErrors (ErrorID, Description, LoggedBy, Date, Module, SubRoutine) "
LogError = LogError & "VALUES ('" & mdlDatabaseActivity.ErrorID
LogError = LogError & "','" & mdlDatabaseActivity.ErrorDesc
LogError = LogError & "','" & mdlDatabaseActivity.currentuser
LogError = LogError & "',#" & Format(Date, "dd/mm/yyyy")
LogError = LogError & "#,'" & mdlDatabaseActivity.Module
LogError = LogError & "','" & mdlDatabaseActivity.SubRoutine & "')"
MsgBox (LogError)
CurrentDb.Execute LogError
DB table are ErrorID, Description, LoggedBy, Date, Module, Subroutine.
This type of statements earlier in my code so I really are not sure what is causing the error in the insert statement.
Please help.
Thanks
Carl
Dim LogError As String
LogError = "INSERT INTO tblErrors (ErrorID, Description, LoggedBy, Date, Module, SubRoutine) "
LogError = LogError & "VALUES ('" & mdlDatabaseActivity.ErrorID
LogError = LogError & "','" & mdlDatabaseActivity.ErrorDesc
LogError = LogError & "','" & mdlDatabaseActivity.currentuser
LogError = LogError & "',#" & Format(Date, "dd/mm/yyyy")
LogError = LogError & "#,'" & mdlDatabaseActivity.Module
LogError = LogError & "','" & mdlDatabaseActivity.SubRoutine & "')"
MsgBox (LogError)
CurrentDb.Execute LogError
DB table are ErrorID, Description, LoggedBy, Date, Module, Subroutine.
This type of statements earlier in my code so I really are not sure what is causing the error in the insert statement.
Please help.
Thanks
Carl