Every three months I get a disc from a vendor that contains a bunch of sales records. The data is in the form of .mbd and consists of about 175,000 records. Our billing dept is only interested in one field and only in the unique values that occur in that field.
I was able to get the unique values by doing a 'select distinct' and dumping the results into an excel spreadsheet but the billers aren't to happy thumbing thru about 40 pages to look up the value they are interested in.
Now I've got a little vb app that loads the values into a datagrid on form_load and then has a text box and command button for a search function that dumps the search result into the datagrid. The only thing is, it takes about 8 seconds for the program to load and it takes about 8 seconds for every search. I've got users over there doing their nails during searches!
I am sure this is because I'm searching the .mdb each and everytime. The initial search for unique values on form_load returns about 900 values. Is there a way to dump those 900 values into an array (or a disconnected recordset?) and then have the user searches just comb those 900 values instead of the .mbd files 175,000 records?
I was able to get the unique values by doing a 'select distinct' and dumping the results into an excel spreadsheet but the billers aren't to happy thumbing thru about 40 pages to look up the value they are interested in.
Now I've got a little vb app that loads the values into a datagrid on form_load and then has a text box and command button for a search function that dumps the search result into the datagrid. The only thing is, it takes about 8 seconds for the program to load and it takes about 8 seconds for every search. I've got users over there doing their nails during searches!
I am sure this is because I'm searching the .mdb each and everytime. The initial search for unique values on form_load returns about 900 values. Is there a way to dump those 900 values into an array (or a disconnected recordset?) and then have the user searches just comb those 900 values instead of the .mbd files 175,000 records?