Hi all,
I have the below bit of code which enables me to interrogate a text file in excel and only bring back the records I want based on a certain reference number. This works great where my text file is small...
The difficulty is when my text file is big (e.g. a couple of million records) the above basically takes too long to process. With a bit of help I have the below code which uses ADO DB connection which I am told will be the most efficient way for interrogating a much larger database... the issue I have is I am getting an error saying 'No value given for one or more required parameters' on the .Open str part.Please Login or Register to view this content.
The column in the text file has a header of 'aa' and that is the only column I am using to search for a reference & if its there I want to bring it back into the excel document. Is there something obvious I am missing?
Please Login or Register to view this content.
Bookmarks