G
Guest
I have a form (Form C) that can be opened by a command button from either of
two other forms (Forms A and B).
Forms A and B each have lists that need to be updated with info input into
Form C. If there was only ONE form that caled Form C, I would use the ON
CLOSE event for Form C and the code: [Form A.List].Requery.
Of course, if Form C is called by the Form B, then I get an error message
when the form is closed, since it can't find the Form A referred to in the
code.
SO, I'm thinking I should write an "IF...Then" statement that tests to see
whether Form A or From B is open, then does the Requery for the appropriate
list.
But I'm missing the piece of code that would do that test. Would it include
a function, like maybe "If IsActive([Form A)] then..." ? Or something like
"If [Form A].IsOpen = True then ..."
Any ideas? (And does anyone know off a good reference source for all the
functions and methods that are available to use?)
THanks!
two other forms (Forms A and B).
Forms A and B each have lists that need to be updated with info input into
Form C. If there was only ONE form that caled Form C, I would use the ON
CLOSE event for Form C and the code: [Form A.List].Requery.
Of course, if Form C is called by the Form B, then I get an error message
when the form is closed, since it can't find the Form A referred to in the
code.
SO, I'm thinking I should write an "IF...Then" statement that tests to see
whether Form A or From B is open, then does the Requery for the appropriate
list.
But I'm missing the piece of code that would do that test. Would it include
a function, like maybe "If IsActive([Form A)] then..." ? Or something like
"If [Form A].IsOpen = True then ..."
Any ideas? (And does anyone know off a good reference source for all the
functions and methods that are available to use?)
THanks!