Hi all,
I'm trying to get my VB6 app to look up prefixes for a phone number out of
an MDB file along with an associated price etc.
For example the phone number could be 9802xxxx, and the MDB file will have
the record 9802 with an associated price.
I am used to connecting to databases via ADO, but my problem is that the MDB
file may contain prefixes from 1 to 5 chars in length and i'm not sure how
to get VB to find the best match.
I'm assuming it can be done with a very large nested IF statement, is there
a better way?
Cheers,
John
I'm trying to get my VB6 app to look up prefixes for a phone number out of
an MDB file along with an associated price etc.
For example the phone number could be 9802xxxx, and the MDB file will have
the record 9802 with an associated price.
I am used to connecting to databases via ADO, but my problem is that the MDB
file may contain prefixes from 1 to 5 chars in length and i'm not sure how
to get VB to find the best match.
I'm assuming it can be done with a very large nested IF statement, is there
a better way?
Cheers,
John
Comment