SS#

S

Steve

I have a field in a table that contains a SS#
(123456789)....how do I make it show on a form like this
(XXX-XX-6789)? Someone please help!
 
R

Roger Carlson

Put the following in the control source of a textbox.

="XXX-XX-" & Right([SS#],4)

Be sure to name the textbox something other than SS#, or you will get an
error. The text box cannot be named the same as any field in an expression.
 
K

Karen

Steve,

Try this (I'm assuming the SS# field is called SSNumber for this example)

SocialSecurity = left(SSNumber,3) & "-" & mid(SSNumber,4,2) & "-" &
right(SSNumber,3)
 
G

Guest

Thanks...that was great!

-----Original Message-----
Steve,

Try this (I'm assuming the SS# field is called SSNumber for this example)

SocialSecurity = left(SSNumber,3) & "-" & mid (SSNumber,4,2) & "-" &
right(SSNumber,3)

--
Karen



.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top