Well, if the OnClick of the MenuIte does something like:
then SomeForm has no way of checking which MenuItem invoked it, hence my requets to show us the code.
The SomeForm could have a property Caller: TObject.
Then you can set that before calling ShowModal.
But, again, without the actual code we're just guessing.
Bart