A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

phone number input mask



 
 
Thread Tools Display Modes
  #1  
Old September 24th, 2004, 07:37 PM
LGarcia
external usenet poster
 
Posts: n/a
Default phone number input mask

Hi all,
Access gives me this as an input mask for a phone number: !\(999")
"000\-0000;0;_ This works fine for a 10 digit number but not when there is
only a 7 digit number (no area code). Is there a way to write this so that
it will accept both 10 and 7 digit numbers?
Thanks!
LGarcia




  #2  
Old September 24th, 2004, 08:13 PM
Mike Labosh
external usenet poster
 
Posts: n/a
Default

Access gives me this as an input mask for a phone number: !\(999")
"000\-0000;0;_ This works fine for a 10 digit number but not when there is
only a 7 digit number (no area code). Is there a way to write this so that
it will accept both 10 and 7 digit numbers?


That's odd, because in that pattern, the 9 represents optional input. I
tried out your input mask and let lets me exclude the area code just fine.
But I would be more concerned that a 7 digit number might accidentally get
entered like this:

(123) 456-7___

--
Peace & happy computing,

Mike Labosh, MCSD

Feed the children!
Save the whales!
Free the mallocs!


  #3  
Old September 24th, 2004, 08:20 PM
LGarcia
external usenet poster
 
Posts: n/a
Default

That's what I'm trying to avoid. I think I need the entry to go right to
left instead of left to right. I moved the exclamation all around but I get
nothing. - thanks for the reply


"Mike Labosh" wrote in message
...
Access gives me this as an input mask for a phone number: !\(999")
"000\-0000;0;_ This works fine for a 10 digit number but not when there

is
only a 7 digit number (no area code). Is there a way to write this so

that
it will accept both 10 and 7 digit numbers?


That's odd, because in that pattern, the 9 represents optional input. I
tried out your input mask and let lets me exclude the area code just fine.
But I would be more concerned that a 7 digit number might accidentally get
entered like this:

(123) 456-7___

--
Peace & happy computing,

Mike Labosh, MCSD

Feed the children!
Save the whales!
Free the mallocs!




  #4  
Old September 24th, 2004, 08:31 PM
Mike Labosh
external usenet poster
 
Posts: n/a
Default

That's what I'm trying to avoid. I think I need the entry to go right to
left instead of left to right. I moved the exclamation all around but I
get
nothing. - thanks for the reply


To get the entry to go from right to left, I think you want to remove the
exclamation point, not put it somewhere else.
--
Peace & happy computing,

Mike Labosh, MCSD

Feed the children!
Save the whales!
Free the mallocs!


  #5  
Old September 25th, 2004, 12:40 AM
Mike Painter
external usenet poster
 
Posts: n/a
Default

LGarcia wrote:
Hi all,
Access gives me this as an input mask for a phone number: !\(999")
"000\-0000;0;_ This works fine for a 10 digit number but not when
there is only a 7 digit number (no area code). Is there a way to
write this so that it will accept both 10 and 7 digit numbers?
Thanks!
LGarcia


Dump the thing and format the output.
@@@ @@@-@@@@ works just fine and your users won't be frustrated having to
move the cursor if they click on the field in the wrong place.
If you insist on it teach them to click on the label rather than the field.


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
trying to input number from another cell automatically BigRay Worksheet Functions 1 August 10th, 2004 04:33 PM
Excel - Imported Number to Phone Number benallred99 General Discussion 2 June 15th, 2004 07:52 PM


All times are GMT +1. The time now is 06:30 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.