I seemed to have messed up my Excel/vba configuration, because this Excel macro does run on one PC, but does not any longer run on the my first PC.
Set adocon = New ADODB.Connection
adocon.Properties("data source") = DB_DSN
The first line works 'OK', but the second line gives the error "Method 'Item' of object 'Properties' failed". In the locals view window, I unfolded adocon and I got this:
- Count <Application-defined or object-defined error>
On the PC where it works all the items are visible. There is no other difference.
Anyone an idea, whether I should add other references (same on the two PC's), or other things??