Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I filter records using DoCmd.TransferText

Status
Not open for further replies.

colezpapa

Programmer
Feb 26, 2007
86
US
I am bringing in a rather large file via a
DoCmd.TransferText ... with an import specification file.
Is there a way I can filter out some of the records.
For instance, one of the fields is named "DOCUMENT". I would like to import only DOCUMENT type = "119"...Can I do that in this type of construct?

Thx
 
It is possible to link to text files, from there a make table query will allow the exclusion of any records. Is this what you had in mind?
 
Well, I thought there was somewhere I could provide a parameter...for example, when opening a form, you can do something like....
DoCmd.Openform "lastname = '" & strLastName & " ' "

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top