Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL.REQUEST function for Excel

Best of Excel

SQL.REQUEST function for Excel

by  Bowers74  Posted    (Edited  )
The SQL.REQUEST() function gives you SQL Query functionality directly in Excel!

The use of this Function is a little in depth, so I am not going to try to explain it all in this thread.

If you want to know more about this function then go to the following website:

http://www.bygsoftware.com/examples/sqlrequest.html

You can download an example Workbook at this link:

http://www.bygsoftware.com/examples/zipfiles/UsingSqlRequest.zip

This is a great example and definately worth looking into. ;-)

You will need to activate or install the ODBC Add-in (XLODBC.XLA) to be able to use this function.


[color blue]For those of you who have [/color]Excel XP[color blue], you need to know that the Excel ODBC Add-in is no longer included with Office XP, but you can download it from MS at this link:[/color]

http://download.microsoft.com/download/excel2002/xlodbc/2002/w98nt42kmexp/en-us/xlodbc.exe



I have experienced that this function works great for returning smaller amounts of data from Access databases. I say smaller amounts, but you can also return relatively larger amounts as well. But be warned, as with every Query process, the larger the data, the longer it takes to return the data.

I use this function to create [color blue]"VLOOKUP()'s"[/color] from Access database. It has also come in really handy when creating reference tables for pivot tables and charts as well! [thumbsup2]


Enjoy, and have fun!


I hope this helps!
Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top