coe6
November 29th, 2000, 06:01 PM
I have a DAT file (C:Zipcodes\SortedZi.dat)which contains zip codes, cities, and states in common seperated format.
For example: "45440","Dayton","OH"
On a form, I have a 3 text boxes:
txt.Zip, txt.City, and txt.State,
which I would like to use to display the output of this file, and a command button cmdSearch.
I want the user to enter a zip code in txt.Zip and when the Search button is pressed, the corresponding City and State appears in the textboxes. I am trying to read the file into an array of UDT and use a sequential search, but am not having any luck. Can anyone help?
For example: "45440","Dayton","OH"
On a form, I have a 3 text boxes:
txt.Zip, txt.City, and txt.State,
which I would like to use to display the output of this file, and a command button cmdSearch.
I want the user to enter a zip code in txt.Zip and when the Search button is pressed, the corresponding City and State appears in the textboxes. I am trying to read the file into an array of UDT and use a sequential search, but am not having any luck. Can anyone help?