G
Guest
We produce a variety of reports for clients which contain SSN's. I need to
be able to display only part of the SSN field on reports.
be able to display only part of the SSN field on reports.
Wayne Morgan said:Make the textbox displaying the SSN a calculated textbox.
Example Control Source:
=Right([SSNField], 4)
or
="***-**-" & Right([SSNField], 4)
For this to work, the textbox can not have the same name as the field. So,
if the field is named SSNField, name the textbox txtSSNField.
--
Wayne Morgan
MS Access MVP
Jerrel Baxter said:We produce a variety of reports for clients which contain SSN's. I need
to
be able to display only part of the SSN field on reports.
Jerrel Baxter said:I now have the display of a part of the SSN field enabled but need to be
able
to display either all or part based on a requesting form's content field.
Thanks for the example showing catenation of the "***-**-" string. That
was
very helpful and your comment regarding changing the field name of the
textbox was also helpfule.
Is there a way to programmatically change the Control Source content to
allow selective display of either all or part of the SSN? A comment I
attached on another reply may be helpful. I have tried setting
PartSSN.ControlSource to another value but receive a message from the
run-time system that this change cannot occur at run-time. Any ideas on
where it could be done on a programmatic basis?
Wayne Morgan said:Make the textbox displaying the SSN a calculated textbox.
Example Control Source:
=Right([SSNField], 4)
or
="***-**-" & Right([SSNField], 4)
For this to work, the textbox can not have the same name as the field.
So,
if the field is named SSNField, name the textbox txtSSNField.
--
Wayne Morgan
MS Access MVP
Jerrel Baxter said:We produce a variety of reports for clients which contain SSN's. I
need
to
be able to display only part of the SSN field on reports.
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.