Please read the FAQ Forum, e.g. Can't decide what editor to use... Maybe this'll help

You might also want to use the DBCommand() UDF instead as it is easier to use. The DBGetRecordSet() returns a recordset object, not a string variable. You will thus have to check whether the recordset object is empty or not.

You should also read the kiXtart Manual under DEBUG as well as the debugging section.
_________________________
There are two types of vessels, submarines and targets.