Thanks James. Some fields don't have a phone number so that may be a problem. Those that do though, the format is completely consistent. =20 However, I'm starting to panic now. I use this DB all the time and no matter what I try, I'm getting the compile error. Any thoughts on troubleshooting that? Never had this problem before. /g -----Original Message----- From: James LaBorde [mailto:jlaborde@xxxxxxxxx]=20 Sent: Tuesday, October 28, 2003 12:31 PM To: 'mso@xxxxxxxxxxxxx' Subject: [mso] Re: Access Function :VSMail mx2 Glenda, Is the data consistently in that format? If it is then you can use the Mid function and get what you need with just simple, built in functions. If it varies you will need to write code to extract the data. =20 If the data is consistent you can simply create two fields in a query using the Mid function as follows: AreaCode: Mid([Phone], 2, 3) and PhoneNum: Mid([Phone], 7, 3) & Mid([Phone], 11, 4) This should return: AreaCode: 333 PhoneNum: 1234567 If you need to use the Mid function for anything else the three parameters are: String, Start Position, Number of characters I hope this gets you what you need.=20 James -----Original Message----- From: Glenda Wells [mailto:gwells@xxxxxxxxxxx] Sent: Tuesday, October 28, 2003 8:09 AM To: mso@xxxxxxxxxxxxx Subject: [mso] Access Function :VSMail mx2 Hi All. Please forgive that this is a repeat message. I've looked through everything I have and can't find this answer. I have a phone number that looks like this in a field: (333) 123-4567. I need to remove the parentheses and the hyphen and separate into two fields so the area code is 333 and the phone number is 1234567. Actually, I can get the number part but I'm stuck at removing the parentheses. I'm thinking some form of trim or len will do the trick=20 I tried looking up functions in MS Access Help which was no help at all and did a web search for an explanation of functions, perhaps finding an example and that was not successful either. I don't have a book on hand to help. I'm actually quite frustrated at the moment.=20 Thanks for help and advice. /g ************************************************************* You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or MicrosoftOffice@xxxxxxxxxxxxxxxx To send mail to the group, simply address it to mso@xxxxxxxxxxxxx To Unsubscribe from this group, send an email to=20 mso-request@xxxxxxxxxxxxx with the word "unsubscribe" (without the quotes) in the subject line. Or, visit the group's homepage and use the dropdown menu. This will also allow you to change your email settings to digest or vacation (no mail). //www.freelists.org/webpage/mso To be able to use the files section for sharing files with the group, send a request to mso-moderators@xxxxxxxxxxxxx and you will be sent an invitation with instructions. Once you are a member of the files group, you can go here to upload/download files: http://www.smartgroups.com/vault/msofiles ************************************************************* ************************************************************* You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or MicrosoftOffice@xxxxxxxxxxxxxxxx To send mail to the group, simply address it to mso@xxxxxxxxxxxxx To Unsubscribe from this group, send an email to=20 mso-request@xxxxxxxxxxxxx with the word "unsubscribe" (without the quotes) in the subject line. Or, visit the group's homepage and use the dropdown menu. This will also allow you to change your email settings to digest or vacation (no mail). //www.freelists.org/webpage/mso To be able to use the files section for sharing files with the group, send a request to mso-moderators@xxxxxxxxxxxxx and you will be sent an invitation with instructions. Once you are a member of the files group, you can go here to upload/download files: http://www.smartgroups.com/vault/msofiles ************************************************************* ************************************************************* You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or MicrosoftOffice@xxxxxxxxxxxxxxxx To send mail to the group, simply address it to mso@xxxxxxxxxxxxx To Unsubscribe from this group, send an email to mso-request@xxxxxxxxxxxxx with the word "unsubscribe" (without the quotes) in the subject line. Or, visit the group's homepage and use the dropdown menu. This will also allow you to change your email settings to digest or vacation (no mail). //www.freelists.org/webpage/mso To be able to use the files section for sharing files with the group, send a request to mso-moderators@xxxxxxxxxxxxx and you will be sent an invitation with instructions. Once you are a member of the files group, you can go here to upload/download files: http://www.smartgroups.com/vault/msofiles *************************************************************