Mark --
You are welcome. The reason that it didn't work with "Init" is that you were calling a UDF and that puts any SET commands in the UDF out of scope to the forms datasession (when it is set Private)....at least I think that's the explanation.
>I did that and it looked right, when I put the call in where you said it works. I don't understand why putting it there works but the form init doesn't, but I'll settle for 'just because' and try to remember this for the future.
>
>Thanks again.
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05