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 » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Masking a field in Report only



 
 
Thread Tools Display Modes
  #1  
Old April 16th, 2010, 04:03 PM posted to microsoft.public.access.reports
messingerjc
external usenet poster
 
Posts: 4
Default Masking a field in Report only

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?
  #2  
Old April 16th, 2010, 05:57 PM posted to microsoft.public.access.reports
Al Campagna[_2_]
external usenet poster
 
Posts: 1,462
Default Masking a field in Report only

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" wrote in message
...
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?



  #3  
Old April 16th, 2010, 09:25 PM posted to microsoft.public.access.reports
messingerjc
external usenet poster
 
Posts: 4
Default Masking a field in Report only

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

"Al Campagna" wrote:

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" wrote in message
...
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?



.

 




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


All times are GMT +1. The time now is 07:56 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.