why don't you try to give it a temporary cursor name.
so instead of this:
hConn=sqlconnect("Agama","dba","")
you do this:
hConn = SQLCONNECT("Agama","dba","mytemp1")
that way when it won't ask for a table name because you gave it one.
What is Wisdom?
Wisdom - The ability to respond to any situation according to God's Plan.
Therefore:
USE Wisdom IN Everything ORDER priority AS Knowledge
SELECT Knowledge
BROWSE FOR Understanding WHERE Wisdom=Guide
LeRoy Jackson