bearcub
Well-known Member
- Joined
- May 18, 2005
- Messages
- 734
- Office Version
- 365
- 2013
- 2010
- 2007
- Platform
- Windows
I need two separate pieces of information based upon the phone number field, the phone number itself and the extension in a separate field. I hope asking 2 questions in 1 is okay - I apologize in advance if this is against forum rules.
#1
I have a report where I 'm trying to show work numbers without extensions in one field and the phone extension (if they have one) in another field.
The phone number field has some fields with no phone number, some fields with this format "(###)###-####" and some field with this format "(###) ###-####"
When I use the left function below I get a "Type#" error in the all these fields.
Formula: Left([work_phone],14)
What formula show I use to get (650)333-5555 (165) or (650) 333-5555 (165) to display (650)333-5555 or (650) 333-5555 in the report and have the null fields show nothing?
#2
Also, I would like to extract the extension number, if there is one, in the field next to it. Using the same example I would like to display 165 in a separate field
Thank you in advance,
Michael
#1
I have a report where I 'm trying to show work numbers without extensions in one field and the phone extension (if they have one) in another field.
The phone number field has some fields with no phone number, some fields with this format "(###)###-####" and some field with this format "(###) ###-####"
When I use the left function below I get a "Type#" error in the all these fields.
Formula: Left([work_phone],14)
What formula show I use to get (650)333-5555 (165) or (650) 333-5555 (165) to display (650)333-5555 or (650) 333-5555 in the report and have the null fields show nothing?
#2
Also, I would like to extract the extension number, if there is one, in the field next to it. Using the same example I would like to display 165 in a separate field
Thank you in advance,
Michael