So here is the problem, well, not actually a problem but rather a question to see if there isn't a better way to do this.
I have a textfile which contains lines of information. I read them line by line and than need to check wether or not they are already in the database. Therefor I need to compare a part of the string that I got out of the textfile-line to the database-table key. If they exist all is okey, if the key of the textfile isn't found in the database-table key column than it should be added (along with some other info)
1) So what would be the best way to check if a string is the same as a key in the keycolumn of the databasetable?
2) and another thing, can you give me an example of the EOF property used with a textreader. I seem to get a syntax error so I kinda solved it with the onerror thingy but I'd like to use the eof property.
This is my first proggy in vba so bare with me .
I have a textfile which contains lines of information. I read them line by line and than need to check wether or not they are already in the database. Therefor I need to compare a part of the string that I got out of the textfile-line to the database-table key. If they exist all is okey, if the key of the textfile isn't found in the database-table key column than it should be added (along with some other info)
1) So what would be the best way to check if a string is the same as a key in the keycolumn of the databasetable?
2) and another thing, can you give me an example of the EOF property used with a textreader. I seem to get a syntax error so I kinda solved it with the onerror thingy but I'd like to use the eof property.
This is my first proggy in vba so bare with me .