0

Hi just wonder how I can use commandbutton ( caption Letter A) click event to read names from an random file that just corespond to letter A in to an listbox.

3
Contributors
5
Replies
6
Views
6 Years
Discussion Span
Last Post by WaltP
0

Hi just wonder how I can use commandbutton ( caption Letter A) click event to read names from an random file that just corespond to letter A in to an listbox.

In the click event
1) open the file
2) Start a loop, exit loop on EOF
3) Read a line
4) If line starts with "A" add it to listbox
5) End of loop
6) Close file

0

Thanks for the information, but if there is in the file servel names that start with letter a is´t better to convert the file to mdb and take it from there?

0

Hi Waltp

How shall i do it for evry letter in the alphabet????

cmdA .... cmd y,, please Think as it is an papper book with sleeves to the right
with al the letters. You open letter B and find what evry one on that last name

Bonzo

0

Start by explaining the problem in detail. I answered the question as you posted it. Now you are asking different questions that barely relate.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.