Regarding the error, I added error checking. Now you get the npc id of the problem NPC. A problem would be a null field, or a problem with a field on the npc id.
If an error still exists (i.e program crashes) then the error is occuring somewhere else in the code.
Dl the newest ODBC drivers from my site and give those a go.
GeorgeS
|