>When you have something like this:
>
>
>' Cast the EventRecord object as an EventLogRecord object to access the EventLogRecord class properties
>loEventLogRecord = CType(loEventRecord, EventLogRecord)
>
>
>...the following won't work to detect if we have a null value:
>
>
>' If we have the object
>If Not loEventRecord.Keywords Is Nothing Then
> loInsertRow.ParameterAdd("Keyword", loEventRecord.Keywords)
>End If
>
>
>Anyone would have a recommendation on a workaround?
Don't understand your question. Firstly, you are casting to loEventLogRecord but not using it in subsequent code. And what is the value of loEventRecord and loEventRecord.Keywords when the if statement executes ?