Hello
I am trying to update audit trail when there is multiselect status update to few types of records, and I want to update the status ="Archived" and also want to update audit trail of each record which has audit trail field. but I am getting error missing operator.
Please help how to make this work, I want to append new action to the existing audit trail of the each records whose status has been update to archived and this new appending line should be appended at new line.
I am trying to update audit trail when there is multiselect status update to few types of records, and I want to update the status ="Archived" and also want to update audit trail of each record which has audit trail field. but I am getting error missing operator.
Code:
sUser = UserNameWindows
currenttime = Format(Now(), "dd/mm/yyyy hh:mm:ss")
SqlQuery = "UPDATE tbl_AllRequests " & _
" SET [Status]= 'Archived' " & _
",[History] = concat([History], 'Archived on " & currenttime & " by '" & sUser & "'&')'&" & _
" WHERE [ID] in (" & selectedIDs & ")"
DoCmd.RunSQL SqlQuery, True
Please help how to make this work, I want to append new action to the existing audit trail of the each records whose status has been update to archived and this new appending line should be appended at new line.