K
Kelvin
I'm using this string in my query but it's not doing everything I want done:
CellPhone:
IIf(Left([CellPhoneNumber],3)="615",Right(Format([CellPhoneNumber],"&&&-&&&&"),7))
The data in [CellPhoneNumber] looks like this "6155942648".
If the area code is "615" I want it to only return the phone number
"5942648" but I also want the number formatted to look like "594-2648", with
the dash.
If the area code is something other then "615" I want the formatting to be
"(&&&) &&&-&&&&". I haven't worked on this part yet.
"6155942648" should look like "594-2648"
"3605942648" should look like "(360) 594-2648"
I can't seem to figure out how to get the data returned to be formatted...
Can someone point me in the right direction to get this formatting to work?
Thanks
Kelvin
CellPhone:
IIf(Left([CellPhoneNumber],3)="615",Right(Format([CellPhoneNumber],"&&&-&&&&"),7))
The data in [CellPhoneNumber] looks like this "6155942648".
If the area code is "615" I want it to only return the phone number
"5942648" but I also want the number formatted to look like "594-2648", with
the dash.
If the area code is something other then "615" I want the formatting to be
"(&&&) &&&-&&&&". I haven't worked on this part yet.
"6155942648" should look like "594-2648"
"3605942648" should look like "(360) 594-2648"
I can't seem to figure out how to get the data returned to be formatted...
Can someone point me in the right direction to get this formatting to work?
Thanks
Kelvin