Good stuff everyone, thanks for your posts. I'll look up the Jet driver. One of the benefits of not knowing anything is that you learn everything lol.
The output will eventually be something I put in an e-mail for someone else. So I guess it could be in excel or text or any file they can open with programs integrated in the OS or MSOffice.
There are basically 3 fields to compare; one string and 2 numbers. I am using SQL because I was working with SQL initially and didn't think to pull the data in directly to VB. This is partly laziness on my part and partly the result of familiarity as I had done this before in my previous program. Though in hindsight I should learn how to do that for both of these programs as the other program uses excel and text files.
I have some familiarity with excel and so I've been trying to leverage some of that knowledge while I learn more VB and SQL. I can see where I want to migrate a lot of stuff to purely VB but i'm working at a snails pace now as it is. I'll revisit these other programs as I learn key skills and migrate functionality directly into the program. I know the stuff i've done so far is pretty much garbage but it's 'good enough for jazz' so to speak.
cjard, I basically used your logic in this program. As I mentioned, I was having some trouble with the logic. It appears though that the logic was fine but one of my data sources was using a rounding function that was causing problems. I included math.round(my array(integerCounter1,field) to clean that data. I dealing with financial products so there shouldn't be any values past 2 decimal spots. In one of the data sources, I was receiving odd numbers such as 7 zeros then a number to the right of the decimal. Rounding cleared this up and most of the logic I had in place worked.
Specifically I used 2 arrays, in two for loops, twice. I compared array a with b and vice versa with results sent to end result arrays. Basically what SQL does but with the suggestion you gave in sending the output to new arrays (a not b and b not a).
I consolidated those two new arrays into a third one and outputed it to SQL. I can copy that to an e-mail.
Everyones posts were very helpful!
My next project will include ASP so i'll be putting some questions there I predict
After that I have a project that I have to integrate excel in my program so after that one, I'll revisit these first 2 programs and make the changes psmocko has suggested.
My boss has been great about all of this and each program has taught me key skills. The first introduced me to ADO and how to work with VB (i've never programmed VB before), this one taught me arrays, next will teach me some ASP and the one after Excel integration.
Thanks again!