[mso] Re: Access Function :VSMail mx2

  • From: "Glenda Wells" <gwells@xxxxxxxxxxx>
  • To: <mso@xxxxxxxxxxxxx>
  • Date: Tue, 28 Oct 2003 14:21:43 -0500

Thanks all for suggestions.

I copied ALL the objects in the original database then used Mid,2,3 to
get the area code field then concatenated Mid,7,3 to get the prefix and
Right,4 to get the number. Very similar to James suggestion below.

It works great and no compile error.  Any thoughts on where the compile
error came from and what to do about it?  I can't run anything in the
"old" database requiring Mid, Left or Right, including creating a new
query based on a new table to use the functions.  I gave up after that
in the interests of 'I just don't have time today for this kind of
b---s---' but I'd still like to have a clue what to do to figure out
what went wrong.

/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
*************************************************************

Other related posts: