Kurt,
You still need to create an instance of an ADO connection. So far, all you have done is declare a variable name. Add:
loConnection = CREATEOBJECT('ADODB.Conncection')
then, set up any other connection properties you might need.
David's suggestion has the same problem: LOCAL oConnection AS ADODB.Connection does not create an instance of the object, it types the variable so it can be used in IntelliSense. Made that same mistake myself :) HTH
Bob Tracy
Never engage in a battle of wits if you're only half armed.