PC Review


Reply
Thread Tools Rate Thread

How to disregard symbols

 
 
=?Utf-8?B?cG9rZGJ6?=
Guest
Posts: n/a
 
      1st Mar 2006
I have a text box where a number is suppose to be entered. Sometime like a
SSN. So if someone puts in 111-22-3333 I would like it to disregard the -
and just store the 11122333. How can you do this?
 
Reply With Quote
 
 
 
 
Roger Carlson
Guest
Posts: n/a
 
      1st Mar 2006
Create an input mask like this for the textbox:
000-00-0000;;_

This will show the dashes in the texbox when the value is entered, whether
or not they type them, but it will not store the dashes with the value.

--
--Roger Carlson
MS Access MVP
Access Database Samples: www.rogersaccesslibrary.com
Want answers to your Access questions in your Email?
Free subscription:
http://peach.ease.lsoft.com/scripts/...UBED1=ACCESS-L


"pokdbz" <(E-Mail Removed)> wrote in message
news:FB7DF6C0-A121-4EFC-B8D2-(E-Mail Removed)...
> I have a text box where a number is suppose to be entered. Sometime like

a
> SSN. So if someone puts in 111-22-3333 I would like it to disregard the -
> and just store the 11122333. How can you do this?



 
Reply With Quote
 
=?Utf-8?B?cG9rZGJ6?=
Guest
Posts: n/a
 
      1st Mar 2006
I really wasn't looking for a input mask. Because not always are they going
to be putting in a SSN. It could be just a regular number like 11223.

"Roger Carlson" wrote:

> Create an input mask like this for the textbox:
> 000-00-0000;;_
>
> This will show the dashes in the texbox when the value is entered, whether
> or not they type them, but it will not store the dashes with the value.
>
> --
> --Roger Carlson
> MS Access MVP
> Access Database Samples: www.rogersaccesslibrary.com
> Want answers to your Access questions in your Email?
> Free subscription:
> http://peach.ease.lsoft.com/scripts/...UBED1=ACCESS-L
>
>
> "pokdbz" <(E-Mail Removed)> wrote in message
> news:FB7DF6C0-A121-4EFC-B8D2-(E-Mail Removed)...
> > I have a text box where a number is suppose to be entered. Sometime like

> a
> > SSN. So if someone puts in 111-22-3333 I would like it to disregard the -
> > and just store the 11122333. How can you do this?

>
>
>

 
Reply With Quote
 
Roger Carlson
Guest
Posts: n/a
 
      1st Mar 2006
OK, then use the Replace function in the AfterUpdate event of the control to
replace "-" with "". Something like this:

Private Sub txtSSN_AfterUpdate()
txtSSN= Replace(txtSSN, "-", "")
End Sub

Where the name of the control is txtSSN.

--
--Roger Carlson
MS Access MVP
Access Database Samples: www.rogersaccesslibrary.com
Want answers to your Access questions in your Email?
Free subscription:
http://peach.ease.lsoft.com/scripts/...UBED1=ACCESS-L



"pokdbz" <(E-Mail Removed)> wrote in message
news:A749F3B0-786E-41E2-A3C1-(E-Mail Removed)...
> I really wasn't looking for a input mask. Because not always are they

going
> to be putting in a SSN. It could be just a regular number like 11223.
>
> "Roger Carlson" wrote:
>
> > Create an input mask like this for the textbox:
> > 000-00-0000;;_
> >
> > This will show the dashes in the texbox when the value is entered,

whether
> > or not they type them, but it will not store the dashes with the value.
> >
> > --
> > --Roger Carlson
> > MS Access MVP
> > Access Database Samples: www.rogersaccesslibrary.com
> > Want answers to your Access questions in your Email?
> > Free subscription:
> > http://peach.ease.lsoft.com/scripts/...UBED1=ACCESS-L
> >
> >
> > "pokdbz" <(E-Mail Removed)> wrote in message
> > news:FB7DF6C0-A121-4EFC-B8D2-(E-Mail Removed)...
> > > I have a text box where a number is suppose to be entered. Sometime

like
> > a
> > > SSN. So if someone puts in 111-22-3333 I would like it to disregard

the -
> > > and just store the 11122333. How can you do this?

> >
> >
> >



 
Reply With Quote
 
=?Utf-8?B?cG9rZGJ6?=
Guest
Posts: n/a
 
      1st Mar 2006
Thanks that will probably work.

"Roger Carlson" wrote:

> OK, then use the Replace function in the AfterUpdate event of the control to
> replace "-" with "". Something like this:
>
> Private Sub txtSSN_AfterUpdate()
> txtSSN= Replace(txtSSN, "-", "")
> End Sub
>
> Where the name of the control is txtSSN.
>
> --
> --Roger Carlson
> MS Access MVP
> Access Database Samples: www.rogersaccesslibrary.com
> Want answers to your Access questions in your Email?
> Free subscription:
> http://peach.ease.lsoft.com/scripts/...UBED1=ACCESS-L
>
>
>
> "pokdbz" <(E-Mail Removed)> wrote in message
> news:A749F3B0-786E-41E2-A3C1-(E-Mail Removed)...
> > I really wasn't looking for a input mask. Because not always are they

> going
> > to be putting in a SSN. It could be just a regular number like 11223.
> >
> > "Roger Carlson" wrote:
> >
> > > Create an input mask like this for the textbox:
> > > 000-00-0000;;_
> > >
> > > This will show the dashes in the texbox when the value is entered,

> whether
> > > or not they type them, but it will not store the dashes with the value.
> > >
> > > --
> > > --Roger Carlson
> > > MS Access MVP
> > > Access Database Samples: www.rogersaccesslibrary.com
> > > Want answers to your Access questions in your Email?
> > > Free subscription:
> > > http://peach.ease.lsoft.com/scripts/...UBED1=ACCESS-L
> > >
> > >
> > > "pokdbz" <(E-Mail Removed)> wrote in message
> > > news:FB7DF6C0-A121-4EFC-B8D2-(E-Mail Removed)...
> > > > I have a text box where a number is suppose to be entered. Sometime

> like
> > > a
> > > > SSN. So if someone puts in 111-22-3333 I would like it to disregard

> the -
> > > > and just store the 11122333. How can you do this?
> > >
> > >
> > >

>
>
>

 
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
When i choose insert symbols no window opens with symbols on it? mhess Microsoft Word Document Management 1 3rd Dec 2007 11:21 PM
Check Mark Symbols Vanished from List of Symbols in Word 2007 =?Utf-8?B?Q2hkaWFtbw==?= Microsoft Word Document Management 0 19th Nov 2007 09:40 PM
Storing an input mask with symbols vs without symbols. =?Utf-8?B?Um9zcw==?= Microsoft Access 10 14th Oct 2006 05:19 PM
Mathematical symbols changing to picture symbols =?Utf-8?B?VmljVmljNzc3?= Microsoft Word Document Management 0 5th Dec 2005 04:09 PM
why can't we add symbols such as alpha, beta, to the form fields? or other scientific symbols Jack-of-all-traits Microsoft Access 2 22nd Feb 2004 03:52 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:57 PM.