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
 
Back
Top