*** DSNLESS Conn lcHandle=SQLSTRINGCONNECT("Driver={Microsoft ODBC for Oracle};Server=MyDatabase;Uid=IsMe;Pwd=123;") ?lcHandle && if -1 then it did not connect *** build your sql lcSQL="SELECT one, two,three" +; "four,five,six"+ ; " FROM Table1" *** exc the command = SQLEXEC(lnhandle, lcSQL+" WHERE one =?whavervevalue","ToCursor")that's it. You now will have the cursor to create your report.