Daniel,
The Amount is of course not part of the key. Sorry.
>>Hi Sergey,
>>
>>Yes, well, it's a shame though.
>>
>>BTW, if one uses a function as a formula in a calculated field and then later for some reason has to change something (bugs maybe <g>), the thing won't recompile because of dependencies.
>>
>>Short of removing the formula, saving the table, editing the function and then putting the formula back in, which is kind of tedious, is there a way around this?
>>
>No, unfortunately not. It's a big pain but that's what we are stuck with.
>
>BTW what exactly are you trying to do with the UDF? If you always want a money value, you can CONVERT within the function. On the other hand, as Sergey pointed out you can't make it generic like you tried.
Peter Pirker
Whosoever shall not fall by the sword or by famine, shall fall by pestilence, so why bother shaving?
(Woody Allen)