Have a look at the UDF 'ReadEventlog' for the first bit.

There is some sample code for creating & writing to an excel document in the Samples folder bundled with the Kix v4.6 zip file - called 'excel.kix'. Might give you some pointers.

Below *should* determine if the events exist

 Code:

$events_1030 = ReadEventlog('Application',1030)
$events_1054 = ReadEventlog('Application',1054)

IF $events_1030[0] <> ""
    "do stuff"
ENDIF

IF $events_1054[0] <> ""
    "do more stuff"
ENDIF


Luke


Edited by lukeod (2008-02-21 02:36 AM)