>Is there a function that will return 2, the number of params passed.
>Or a function I can use on the third param name that will tell me if a value was passed for it.
If you use variants, then you can use the IsMissing function to determine if a parameter is missing. But if they are other variables, you will either need to set defaults for them and check that or check for empty strings or 0 values.
Jay Shepherd