When the report is given to the from office they just want them to have the last 4 digits. Is there a query that can be used to reflect that on the report.
When I put my code in the query it keeps asking me to enter a parameter value. I want it to open up the report and show a list of ALL SSN's with the last 4 digits.
somewhat off topic, but I have often wondered what is the point of this practice (and it is a common one). Since you provide only slightly more than half of the identifier, these seems little possability of using it as any reasonable index / identity, etc., ah what is the purpose?
[blue]Knicks[/blue] is on target. You need to create a custom field in the query. In the [blue]first blank field[/blue] in the [blue]field row[/blue], copy/paste one of the following:
Code:
[blue]SSN4:Right([SSN],4)
or
SSN4:"***-**-" & Right([SSN],4)[/blue]
In the report use the [blue]SSN4[/blue] field instead of [blue]SSN[/blue].
MichaelRed:
Your right, it is off topic.
The last 4, plus your name, address, phone number, etc. can be used by PEOPLE to identify that the PEOPLE in the office are talking to the right person. That is why this was for a report, not a file. Plus, the actual SSN is not being printed on a piece of paper and thus presenting the company with another possible way to have identity thieft made easier within their company.
Thanks that works now, just have one problem.
On the query it shows up as the SSNID Autonumber even though on the table I set up the width and the column count. How do I change the query to show the last four and not the Autonumber.
Anything on the left side of the ":" will become the new field name (you don't want to use the old field name, make it new like suggested ssn4). If you don't put anything to the left of the colon, Access automatically assigns expression1, ect..
This new field name should then be available in your report or form. I have no idea how your autonumber got hooked up into this. Simply delete that field and add the new one created in the query
Simply use that on the top line of the query grid as an expression. When you view either form or report in design mode you should see as a field "SSN4", drag it down and use it.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.