Many thanks...
DJJ
"TonyT" <TonyT[ at ]discussions.microsoft.com> wrote in message news:0A15F4E9-3124-40C8-87C0-7A073CC21C0B[ at ]microsoft.com...
[Quoted Text] > If you create a table with those 2 fields - code and number, then you can > cross reference that to *hide* your value, but that would have to be in > vba > at point of display rather than at query level, and would require looping > through the value with a len() coding. > > TonyT.. > > "DJJ" wrote: > >> I am trying to create a query with a field called CostCode. It is a >> field >> that disguises the cost of a product in a hidden formula based letters >> instead of numbers. The formula is as follows: >> >> 1 = P >> >> 2 = R >> >> 3 = E >> >> 4 = S >> >> 5 = T >> >> 6 = O >> >> 7 = M >> >> 8 = A >> >> 9 = C >> >> 0 = X >> >> 00 = XY >> >> 000 = XYZ >> >> >> >> Example: $234 = RES >> >> >> >> Is there an easy way to do this without writing a massive IF statement >> and >> then trying to concatenate everything? >> >> >> >> DJ >> >> >>
|