M
Mark
Hi all, I still need some assistance.
I have imported a table that has two columns, HospitalName
and HospitalPhone. Within the table there are several
hundred rows of data (records). The current format of
hospital phone number is like: 555/555-5555. Is there a
way to convert the format of all the phone numbers in the
table to: (555)_555-5555? So I can consistently use the
same format as with other fields in my form that are using
an input mask !\(999") "000\-0000;0;_.
I am thinking that there should be a way I can accomplish
this using a query, perhaps a make-table query? A query
with criteria that will convert the current format to the
format I am trying to get too like: (555)_555-5555
Thanks for taking a look at this! I am unsure of how to
write the criteria to do this.
Wayne told me to try:
UPDATE Table1 SET Table1.Phone = Format(Replace(Replace
([Phone],"-",""),"/",""),"(&&&)
&&&-&&&&");
but I am having trouble with this working. it is not
liking the Replace expression.
Thanks for the help.
I have imported a table that has two columns, HospitalName
and HospitalPhone. Within the table there are several
hundred rows of data (records). The current format of
hospital phone number is like: 555/555-5555. Is there a
way to convert the format of all the phone numbers in the
table to: (555)_555-5555? So I can consistently use the
same format as with other fields in my form that are using
an input mask !\(999") "000\-0000;0;_.
I am thinking that there should be a way I can accomplish
this using a query, perhaps a make-table query? A query
with criteria that will convert the current format to the
format I am trying to get too like: (555)_555-5555
Thanks for taking a look at this! I am unsure of how to
write the criteria to do this.
Wayne told me to try:
UPDATE Table1 SET Table1.Phone = Format(Replace(Replace
([Phone],"-",""),"/",""),"(&&&)
&&&-&&&&");
but I am having trouble with this working. it is not
liking the Replace expression.
Thanks for the help.