Getting form name

G

Guest

Hello.
I have two different forms(A and B) that contains a button to open another
form (C).
This form (C) is populated with information contained on the first two forms.

Is it possible to check, on form_load method of form (C), what form_opened
it ?

Thanks,

Luis
 
G

Guest

Using the OpenArgs of the open form command line, you can pass the form name
that open it

Docmd.OpenForm "C" , , , , , , Me.Name

that way the form name will be passed to form C, and on the form load event
of form C use the code

Me.OpenArgs to retrieve the form name that open it
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top