Question : import csv file into access using VBA and restricting records imported on some field criteria

Is it possible to import a csv file into access using vba and at the same time filter which records to import using the TransferText command or some other vba function.

Answer : import csv file into access using VBA and restricting records imported on some field criteria

No, I don't believe so.  But I just did a Google search and found:  http://ms-access-import-multiple-text-files-sof.software.informer.com/7.0/ by http://www.sobolsoft.com/, which I used several years ago but not recently.  There's got to be an ActiveX control for sale, or some open code, that you can get your hands on.

Of course you could always scrub it when it gets in, or put it in a temp table first, then pass it to your production table when you've cleaned it.

jr
Random Solutions  
 
programming4us programming4us