IMO this one is tough one.
I have a table with phone & fax data in an address column that I want to put into their separate phone and fax column.
To further complicate things the phone comes in a various forms:
phone, T , ph, tel., tels., fono. The same issue occurs with fax, i.e. Fax & F.
Ideally, I think the following is a good details to extract the the data.
1. Not all numbers pertain to phones (i.e. zipcodes) not all phone numbers are preceeded by anything that identifies it (ie. phone, ph, tel.).
2. Their are atleast 10+ consecutive numbers in a phone (with international codes & dialing can be 13-15 numbers) which might have a few of any of the following separators [.],[-],[)],[(] or A single space[ ].
3. The first occurance of the strand of numbers as described in #2 is the phone #, the second occurance is the fax #.
Has anyone done a regular expression for access before that I can use to extract the phone & fax data to cust.phone & cust.fax columns with vba?
I have a table with phone & fax data in an address column that I want to put into their separate phone and fax column.
To further complicate things the phone comes in a various forms:
phone, T , ph, tel., tels., fono. The same issue occurs with fax, i.e. Fax & F.
Ideally, I think the following is a good details to extract the the data.
1. Not all numbers pertain to phones (i.e. zipcodes) not all phone numbers are preceeded by anything that identifies it (ie. phone, ph, tel.).
2. Their are atleast 10+ consecutive numbers in a phone (with international codes & dialing can be 13-15 numbers) which might have a few of any of the following separators [.],[-],[)],[(] or A single space[ ].
3. The first occurance of the strand of numbers as described in #2 is the phone #, the second occurance is the fax #.
Has anyone done a regular expression for access before that I can use to extract the phone & fax data to cust.phone & cust.fax columns with vba?