wow, i never realized till you just posted your code i have more stuff in mine than is needed...
two main things that i saw. you were setting adocon = to a server object and it didnt need to be. second the strsql came after you tried to open it so that string was blank and it didnt know what to do.
two spruce ups...first i combined your sql statements, second i put the output of the db into the link as you were going to do..