Using VBA in Word 97 I have a process that reads data from an Access Database whci I then want to compare with a given value to see if the given value is in the list. Currently,
1) The the database values are stored in an array
2) A FOR-NEXT loop then cycles through each of the array values to see if there is a match with the given value. If found then TRUE, if not then FALSE.
As the list gets bigger the FOR-NEXT method would take more time.
Does anyone have any suggestions for a more efficient way to do such a compare?
many thanks for any suggestions,
otk