NateO
Legend
- Joined
- Feb 17, 2002
- Messages
- 9,700
Hmm, strong language... Is that bait I smell?#7: I am not a big fan of array formulas for extracting data. Introduce people to a very powerful and highly unused tool: MS Query.
{snip}
No problem pulling in data without arrays, but MS Query is 'very powerful'? Well, I guess... You can unwittingly take out mission-critical DBs with it...
In my opinion, if you're going to show them this 'tool', you'd better explain the entire thing, which is kind of complex. Simply showing someone how to set up a Query might be setting them up for some serious headaches more than anything else...
I.e., you have to explain the difference between a background Query (which should almost always be set to false), QueryTable Objects, ODBC connections, where the SQL and Connection strings are located, how the developer might be pumping 1,000s of lines of code into their App while not realizing it... And think twice about the RefreshAll Method, dare I say do not use this Method?
If you don't know how to interact with QueryTable Objects with VBA, your chances of maintaining these things are drastically reduced. Questions pop up all the time with stuff... E.g., "What database is this thing pointing to?" And "I moved my DB, and I can't get back into the MS Query Editor...", on and on, etc...
I suspect one is better off learning how to use VBA/OLE DB/ADO to interact with DBs, there's nothing you can't do with this that you can do with MS Query, and the intent/code is all sitting right there in front of you.
Of course, this is all well beyond the scope of Excel 101. :wink: