Get name calling form (1 Viewer)

brampeirs

Registered User.
Local time
Today, 22:27
Joined
Jul 29, 2011
Messages
20
Hello,

I would like to know how to get the name of the form that calls another form.

I have a form called employer.

Two other forms: Customer and Start. On both Customer and Start form there is a button 'Employer'. Both buttons open the same employer form, but I want it to act differently depending on the form on witch te button is pressed.

So I can do something like this:

if caller ="start form" then btnsave.caption = "save"
if caller = "cusotmer form" then btnsave.caption = "add"

Cann someone help me, I do not have the right vba knowledge. (Sorry for my bad English, I'm Dutch).
 

brampeirs

Registered User.
Local time
Today, 22:27
Joined
Jul 29, 2011
Messages
20
Thank you, it worked.
 

Users who are viewing this thread

Top Bottom