You've got it backwards - objCommand should be an ADODB.Command, and cn should be a connection (tho you dont seem to be using it).