>>>With that specific code, tnError will be 0 if nothing is passed. If 0 means something else, then you will have to use IsMissing, otherwise, you could just check for 0.
>>
>>Thanks, as you probably have seen, I got the answer as well from someone else.
>Sorry, but I didn't see that you got the answer from someone else. Was it here in the VB forum?
My mistake, I just found your reply was to add something to your answer. :)