Getting form name

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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
 
Back
Top