Have you tried it without specifying the cursortype and lock parameters? In particular not all cursortypes are supported by all ODBC drivers.
Try Recordset.open(lSql,lConnection) and see what happens. Also, try using the Open method with the connection object and see if that works. The open method will return 0 if successful.
HTH
>The datatype is a character.
>
>Jan,
"It is an important and popular fact that things are not always what they seem. For instance, on the planet Earth, man had always assumed that he was more intelligent than dolphins because he had achieved so much -- the wheel, New York, wars and so on -- whilst all the dolphins had ever done was muck about in the water having a good time. But conversely, the dolphins had always believed that they were far more intelligent than man -- for precisely the same reasons." - Douglas Adams