Masking a field in Report only

M

messingerjc

One of the fields in my main table has a social security number. I have the
formatting correctly showing the dashes. I have a few different reports, some
show the full social, while others I would like only the last 4 of the social
to show. ie. xxx-xx-1234
How would I format that correctly in just those particular reports?
 
A

Al Campagna

messingerjc,
Given a Social Security Number field (ex. [SSN])
In your qyery behind the report, create a calculated field...
SSNLast4 : "*** - ** - " & Right(SSN, 4)

Place [SSNLast4] on your report.

This will display as...
*** - ** - 6789
--
hth
Al Campagna
Microsoft Access MVP 2007-2009
http://home.comcast.net/~cccsolutions/index.html

"Find a job that you love... and you'll never work a day in your life."
 
M

messingerjc

Woot! That was it! Thank you very much for your help!

Al Campagna said:
messingerjc,
Given a Social Security Number field (ex. [SSN])
In your qyery behind the report, create a calculated field...
SSNLast4 : "*** - ** - " & Right(SSN, 4)

Place [SSNLast4] on your report.

This will display as...
*** - ** - 6789
--
hth
Al Campagna
Microsoft Access MVP 2007-2009
http://home.comcast.net/~cccsolutions/index.html

"Find a job that you love... and you'll never work a day in your life."

messingerjc said:
One of the fields in my main table has a social security number. I have
the
formatting correctly showing the dashes. I have a few different reports,
some
show the full social, while others I would like only the last 4 of the
social
to show. ie. xxx-xx-1234
How would I format that correctly in just those particular reports?


.
 

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