Let's say I had function TextEncrypt...and I called it from frmTextEditor...is there any way I can do a check from within TextEncrypt to see which form called it so I know which form to assign stuff to? The function itself wouldn't be on any form, it'll be stored separately in a BAS module

Yeah, I know, a weird question...but if you read my other question you'll know I'm thinking about a multi-form "pseudo OS" and knowing which form called the function would make a lot of difference (as the data generated from that call needs to be kept private to each form in some cases :-))..currently in the brainstorming phase of design rather than any actual code (and if you remember from other posts, I'm not doing any coding anyway because my monitor's bust and I'm on a TV here :-)) but it doesn't hurt to glean information in advance so I'm armed and dangerous when the time is right to code :-)

I'm off to bed now, so I'll see what people say in the morning when I get up...hopefully there's a way to do this, but I'm sure I can rustle up something if not