If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Unformat Phone Number Field
All,
I have a database table that has a field Fax_Numbers that have fax numbers saved in the format: (333) 444-5555. I wish to use these numbers in a query with the numbers left justified and with numerals only: 3334445555. I can't seem to "unformat" using the Format function in a query. Your help would be greatly appreciated. Thank you in advance. Brad |
#2
|
|||
|
|||
Unformat Phone Number Field
You could use the following expression in a query.
Assumption: Access 2000 SP2 or later Field: NumbersOnly: Replace(Replace(Replace(Replace(Fax_Numbers," ",""),"-",""),"(",""),")","") '================================================= === John Spencer Access MVP 2002-2005, 2007-2008 The Hilltop Institute University of Maryland Baltimore County '================================================= === Brad wrote: All, I have a database table that has a field Fax_Numbers that have fax numbers saved in the format: (333) 444-5555. I wish to use these numbers in a query with the numbers left justified and with numerals only: 3334445555. I can't seem to "unformat" using the Format function in a query. Your help would be greatly appreciated. Thank you in advance. Brad |
#3
|
|||
|
|||
Unformat Phone Number Field
John,
That worked perfect. Thank you so much for the quick help. Brad "John Spencer" wrote in message ... You could use the following expression in a query. Assumption: Access 2000 SP2 or later Field: NumbersOnly: Replace(Replace(Replace(Replace(Fax_Numbers," ",""),"-",""),"(",""),")","") '================================================= === John Spencer Access MVP 2002-2005, 2007-2008 The Hilltop Institute University of Maryland Baltimore County '================================================= === Brad wrote: All, I have a database table that has a field Fax_Numbers that have fax numbers saved in the format: (333) 444-5555. I wish to use these numbers in a query with the numbers left justified and with numerals only: 3334445555. I can't seem to "unformat" using the Format function in a query. Your help would be greatly appreciated. Thank you in advance. Brad |
Thread Tools | |
Display Modes | |
|
|