Discrimination test for a Form

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have two different Forms that lead to a common Form and want to test for
which Form called the common Form. Could be done with a boolean variable. Any
suggestions? With thanks.
 
Use the openargs in the openform command to pass the name of the form the
currently openning the common form
docmd.OpenForm "common form name",,,,,,me.name

On the on load property of the common form add the condition

Select Case OpenArgs
case "Form Name1"
case "Form Name2"
End Select

You can use the OpenArgs any where in the common form, so you wont have to
create new variables
 
I have two different Forms that lead to a common Form and want to test
for which Form called the common Form. Could be done with a boolean
variable. Any suggestions? With thanks.

I would pass it with OpenArgs.

HTH
 

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

Back
Top