Any idea what I can do to speed this up it goes super fast when i run it from telnet. When i use SQL to pull into excel this report takes super long. Here's the code. The question marks are using the client number in excel and a date like today()-1460 formula, because I don't know how to write...