BEST PRACTICES -> SQL with DAO

Irish_Griffin

Board Regular
Joined
Jan 16, 2009
Messages
138
Hi guys,
I've discovered excel can do SQL !!! It feels like I'm the primitive caveman discovering fire :LOL:

Well lets not talk about how much time I've wasted writing code that would have been soooooooo much easier in SQL :( .... Instead, lets talk about BEST PRACTICES using SQL in EXCEL :cool:

I would like to make this thread a good reference for others ( not much online surprisingly ). I'll make this a sweet thread if I can get the guru's help.

So first and foremost:
#1 - Is DAO the right choice ?

Remember to take learning one bite at a time:
QrUHZ.jpg
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
since my query is essentially a SQL statement, could i just use that?


Hi,
I don't quite understand the Question.

I have been using Microsoft Acces to Query builder then selecting Veiw-> SQL Code

I find this to be a great way to learn and generate the code you need. ( although expect to remove some un-needed code the acces puts in ( extra parentheses and what not )
 
Upvote 0
Hi Everyone.

I wanted to post up the entire tool for anyone use.

Everything it it is pretty well noted. I have found it to be a excellent starting point when trying to create any excel tool that deals with large data comparing, filtering and calculating.

Depending on what you are doing; a first step would be creating a function that outputs the ADO connection string so that it is in one location.

If your a guru, please consider creating a new revision of the tool and posting it up.


http://www.sendspace.com/file/58c7t6


THANKS FOR ALL THE HELP!! :biggrin:
- Griff
 
Upvote 0
Blade,

Consider an Index Table where each RS consists of all the misspellings paired with the correct spelling, (or other unique identifier.)

While this is WAaayy out of my depth, I do know that it is a charactistic of well designed databases.

Rich (BB code):
<PRE>
Primary Key               Secondary Key
Thriller                       Thriller
Thriler                        Thriller
Thrillerr                      Thriller
</PRE>
 
Upvote 0

Forum statistics

Threads
1,216,030
Messages
6,128,408
Members
449,448
Latest member
Andrew Slatter

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top