I iuphim Registered User. Local time Today, 18:01 Joined Oct 30, 2008 Messages 43 May 26, 2009 #1 What's the easiest way to add in the dashes in the phone numbers? I have 7574565899 and want 757-456-5899. Thanks,
What's the easiest way to add in the dashes in the phone numbers? I have 7574565899 and want 757-456-5899. Thanks,
M Mr. B "Doctor Access" Local time Today, 17:01 Joined May 20, 2009 Messages 1,932 May 26, 2009 #2 Look into using a "Mask" on your field or control. Make sure that you specify that you want to store the characters in the field. HTH
Look into using a "Mask" on your field or control. Make sure that you specify that you want to store the characters in the field. HTH
ajetrumpet Banned Local time Today, 17:01 Joined Jun 22, 2007 Messages 5,638 May 26, 2009 #3 If the mask eliminates your data, you may have to loop through the table and manually change them. Use this function after declaring a recordset to do so: Code: .movefirst do until .eof .edit !phonenumber = left(!phonenumber, 3) & "-" & _ mid(!phonenumber, 4, 3) & "-" & _ right(!phonenumber, 4) .update .movenext loop
If the mask eliminates your data, you may have to loop through the table and manually change them. Use this function after declaring a recordset to do so: Code: .movefirst do until .eof .edit !phonenumber = left(!phonenumber, 3) & "-" & _ mid(!phonenumber, 4, 3) & "-" & _ right(!phonenumber, 4) .update .movenext loop