Diplaying only the last four of SSNs on a report

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • wstylze
    New Member
    • Oct 2012
    • 2

    Diplaying only the last four of SSNs on a report

    I am attmpting to only display the last for of a SSN in a MS Access 2003 report like so

    SSN="****-**-" & right(rstemp("P ersonSSN"),4)

    Please assist.
  • wstylze
    New Member
    • Oct 2012
    • 2

    #2
    Thanks figured it out

    Code:
    =Right([PersonSSN],4)
    Last edited by zmbd; Oct 16 '12, 05:58 PM. Reason: when positing VBA, SQL, HTML, XML, etc... please format using the <CODE/> button - thnx

    Comment

    • twinnyfo
      Recognized Expert Moderator Specialist
      • Nov 2011
      • 3665

      #3
      wstylze,

      Although you provided a solution that works for you, I am intrigued as to why your first function did not work properly. Assuming that the rstemp was valid and that there was a field named PersonSSN, your code should have worked.

      Were you getting an error with the previous code?

      Comment

      Working...