Do you have 2 of that same procedure?
You're trying to modify an Access event procedure with an additional parameter. You can't do that.
If you want to do a custom function, then create a custom function in the form's code module, and call it from the On Click event, as well as from other places, as you said, instead.
That's exactly what I was going try next. I'll do that Sunday AM.
Bill
Apparently you are correct. To resolve, I isolated the functional code to separate Function and invoked that function from the OnClick event with the command button, passing the parameter appropriate to that use. That same new Function can also be invoked as a choice in a right-click popup with the parameter passed appropriate to that path of use.You can't do that.
Thanks,
Bill
Apparently so! LOLApparently you are correct.
Glad you got it worked out.