OK, found an answer
It didn't work because this reference was active:
microsoft activex data objects 2.1 library
Now i'm going to have to check the hole programme to see if everything still works after deactivating this reference