When I enter the following code in a subroutine:
Dim conn As ADODB.Connection
and run the program, I get an error saying "User-defined type not defined."
All the tutorials say that this is the right code to enter. Can anyone please
help me with this and tell me what is the problem?