>So if you inspect the log using the EventViewer what is the Keywords property for an event which comes up with null in code ?
>Did you try running the equivalent of my code ?
In there, Keywords shows Classic. However, in my table, I cannot collect it. I think this is related to the fact the Keywords is recognized as null. So, the code cannot determine the KeywordsDisplayNames property.
Your code is exactly like mine:
If lKeyword Then
End If
If lKeywordDisplayName Then
Try
lcFinal = ""
For Each lcString In loEventLogRecord.KeywordsDisplayNames
If lcFinal.Length > 0 Then
lcFinal = lcFinal + ", "
End If
lcFinal = lcFinal + lcString
Next
loInsertRow.ParameterAdd("KeywordDisplayName", lcFinal)
Catch loException As Exception
End Try
End If
See attached.