Yeah i understan that this is isn't a topic just for the masks
but instaed
Masking values in tables
Should be filling values in tables with ****
;)
I'd agree in general that masking should be done on display, rather than stored in the data. But if they really
want to store it that way, it's their choice. However...
I would
strongly recommend using some character other than the asterisk, if you can get away with it. Asterisks in your data are likely to cause all sorts of problems and confusion if you ever need to do wildcard type searches - that is, using the
Like comparison. Because the asterisk has a special meaning in that case. As do some other characters, such as... um... question mark, I think. Check the online help for "Like", anyway.
Also, you might want to keep in mind NeoPa's recommendation to use single rather than double quotes. In other words, rather than
- UPDATE IDCD_OUTBOUND_ORIG SET IDCD_OUTBOUND_ORIG.PRINT_MEMBER_ID =
- "*****" & Mid$([PRINT_MEMBER_ID],6)
-
WHERE (((IDCD_OUTBOUND_ORIG.GROUP_ID)="55657607"));
you could use
- UPDATE IDCD_OUTBOUND_ORIG SET IDCD_OUTBOUND_ORIG.PRINT_MEMBER_ID =
- '*****' & Mid$([PRINT_MEMBER_ID],6)
-
WHERE (((IDCD_OUTBOUND_ORIG.GROUP_ID)='55657607'));
(Urg - the highlighting didn't work very well, did it?)