PC Review


Reply
Thread Tools Rate Thread

How do I set the input mask for an Email field in Access 2003?

 
 
=?Utf-8?B?QWJpbGFzaCBTYW5hbQ==?=
Guest
Posts: n/a
 
      29th Nov 2006

 
Reply With Quote
 
 
 
 
John Vinson
Guest
Posts: n/a
 
      29th Nov 2006
On Tue, 28 Nov 2006 20:20:00 -0800, Abilash Sanam <Abilash
(E-Mail Removed)> wrote:

It's considered polite to use the big white text area to post your
questions.

An EMail field is simply too variable and too complex for the very
limited Input Mask tool to manage. You'll need to use some non-trivial
VBA code in the BeforeUpdate event of the textbox on your Form to
validate it, or just trust your users.

John W. Vinson[MVP]
 
Reply With Quote
 
Sue in IL
Guest
Posts: n/a
 
      7th Jan 2008
John
if you've already written this VBA code would you consider sharing it? I'm
just temping here to create a dbase (& based on what I've seen so far, the
more input masks I can build in the better!)
thanks much, Sue

"John Vinson" wrote:

> On Tue, 28 Nov 2006 20:20:00 -0800, Abilash Sanam <Abilash
> (E-Mail Removed)> wrote:
>
> It's considered polite to use the big white text area to post your
> questions.
>
> An EMail field is simply too variable and too complex for the very
> limited Input Mask tool to manage. You'll need to use some non-trivial
> VBA code in the BeforeUpdate event of the textbox on your Form to
> validate it, or just trust your users.
>
> John W. Vinson[MVP]
>

 
Reply With Quote
 
Paul Shapiro
Guest
Posts: n/a
 
      7th Jan 2008
I've used a validation rule that enforces at least minimal compliance:
Like "?*@?*.??*"
This requires one or more characters, followed by the @, one or more
characters, followed by the ., followed by two or more characters (as far as
I know there aren't any single-character domain types).

You can't make a useful input mask because the number of characters in each
position varies. Input masks are only helpful if the input format is always
the same, or perhaps a few options like you can see in the samples for zip
code and phone number.

"Sue in IL" <Sue in (E-Mail Removed)> wrote in message
news:22282F63-7CC7-43F6-8A0E-(E-Mail Removed)...
> John
> if you've already written this VBA code would you consider sharing it? I'm
> just temping here to create a dbase (& based on what I've seen so far, the
> more input masks I can build in the better!)
> thanks much, Sue
>
> "John Vinson" wrote:
>
>> On Tue, 28 Nov 2006 20:20:00 -0800, Abilash Sanam <Abilash
>> (E-Mail Removed)> wrote:
>>
>> It's considered polite to use the big white text area to post your
>> questions.
>>
>> An EMail field is simply too variable and too complex for the very
>> limited Input Mask tool to manage. You'll need to use some non-trivial
>> VBA code in the BeforeUpdate event of the textbox on your Form to
>> validate it, or just trust your users.
>>
>> John W. Vinson[MVP]


 
Reply With Quote
 
Tony Toews [MVP]
Guest
Posts: n/a
 
      8th Jan 2008
"Paul Shapiro" <(E-Mail Removed)> wrote:

>This requires one or more characters, followed by the @, one or more
>characters, followed by the ., followed by two or more characters (as far as
>I know there aren't any single-character domain types).


Agreed. Although there are some single letter domain names. Try
www.q.com or www.z.com.

>You can't make a useful input mask because the number of characters in each
>position varies. Input masks are only helpful if the input format is always
>the same, or perhaps a few options like you can see in the samples for zip
>code and phone number.


This assumes you only have USA zip codes or North American phone
numbers.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Access 2003 Input Mask behavior DavidG Microsoft Access 0 16th Jul 2008 04:39 PM
value of a field with an input mask? Mike Microsoft Access Forms 10 2nd Feb 2008 04:43 AM
Access Email Input mask. Emeka Nwosu Microsoft Access 3 6th Sep 2004 06:58 PM
Re: input mask for email field John Vinson Microsoft Access Forms 2 4th Sep 2003 05:23 PM
Re: input mask for email field Rick Brandt Microsoft Access Forms 0 3rd Sep 2003 06:52 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:39 PM.