![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
In an Access form, I need to hide part of a SSN in certain conditions, and show the whole thing in others. In other words, sometimes: 123-45-6789 and other times: ***-**-6789 Can that be done with the Format property? |
#3
| |||
| |||
|
|
On Wed, 4 May 2011 14:55:05 -0500, "Neil" neil.ginsberg+newsgroup (AT) gmail (DOT) com wrote: In an Access form, I need to hide part of a SSN in certain conditions, and show the whole thing in others. In other words, sometimes: 123-45-6789 and other times: ***-**-6789 Can that be done with the Format property? The Format property isn't that flexible. One way to do it would be to base the form or report on a Query, and in the query put a calculated field ShowSSN: "****-**-" & Right([SSN], 4) Of course if the user has a way to look at the table or queries directly they could find the actual SSN easily, so this isn't any sort of real security; but it will at least conceal the data from casual viewing. |
#4
| |||
| |||
|
|
Thanks, John. Security isn't a major concern. The only thing is, in deciding which field to use (SSN or ShowSSN, as you've called it), I'd need to us an IIF statement in an unbound text box. That creates problems with continuous form view. Oh well. Guess you can't have your cake and eat it too.... |
#5
| |||
| |||
|
|
On Wed, 4 May 2011 17:16:57 -0500, "Neil" neil.ginsberg+newsgroup (AT) gmail (DOT) com wrote: Thanks, John. Security isn't a major concern. The only thing is, in deciding which field to use (SSN or ShowSSN, as you've called it), I'd need to us an IIF statement in an unbound text box. That creates problems with continuous form view. Oh well. Guess you can't have your cake and eat it too.... Not sure at what point you decide which is which, but I'd be inclined to have two forms - one with the full SSN for data entry and editing, and a different form for users who shouldn't see the full number. You could even have the two forms in two different frontends, if the deciding factor is "whose PC should this be on". |
#6
| |||
| |||
|
|
"John W. Vinson"<jvinson (AT) STOP_SPAM (DOT) WysardOfInfo.com> wrote in message news:kpl3s6l8gkvvb29oam8vc2rie8udbijnb8 (AT) 4ax (DOT) com... On Wed, 4 May 2011 17:16:57 -0500, "Neil" neil.ginsberg+newsgroup (AT) gmail (DOT) com wrote: Thanks, John. Security isn't a major concern. The only thing is, in deciding which field to use (SSN or ShowSSN, as you've called it), I'd need to us an IIF statement in an unbound text box. That creates problems with continuous form view. Oh well. Guess you can't have your cake and eat it too.... |
#7
| |||
| |||
|
|
In an Access form, I need to hide part of a SSN in certain conditions, and show the whole thing in others. In other words, sometimes: 123-45-6789 and other times: ***-**-6789 Can that be done with the Format property? |
![]() |
| Thread Tools | |
| Display Modes | |
| |