R
Raistlin
Hi Guys,
I'm looking for a little help with a Macro I'm trying to write. Is there
any way to check from within a Macro and see if another form is open. and
then act based upon that information? I've tried the following (it's
possible that my syntax isn't all that great!):
There are 3 IsNull conditions before these lines, they look at controls
within the form and if they are Null they pop up a message box asking the
user to input the information required and then they stop the macro so that
this can be done.
Once all the required fields are populated the following line should run, it
checks to see if another form is open (if it is it produces a message box
giving the user information, if it isn't it just closes the form that's open
and stops the Macro) this is the bit I can't get to work.
CONDITION ACTION
IsLoaded([Forms]![MyForm])=True MsgBox (Gives User Info)
.... Close (Closes
The Form We Are In)
StopMacro
I know this would probably be easier to sort out using code but I'm really
struggling with coding at the moment and find macros a lot easier to sort
out (especially as this is part of a much bigger set of checks/instructions
I really don't want to complicate things more for myself).
Thanks for the help Guys,
Raist.
I'm looking for a little help with a Macro I'm trying to write. Is there
any way to check from within a Macro and see if another form is open. and
then act based upon that information? I've tried the following (it's
possible that my syntax isn't all that great!):
There are 3 IsNull conditions before these lines, they look at controls
within the form and if they are Null they pop up a message box asking the
user to input the information required and then they stop the macro so that
this can be done.
Once all the required fields are populated the following line should run, it
checks to see if another form is open (if it is it produces a message box
giving the user information, if it isn't it just closes the form that's open
and stops the Macro) this is the bit I can't get to work.
CONDITION ACTION
IsLoaded([Forms]![MyForm])=True MsgBox (Gives User Info)
.... Close (Closes
The Form We Are In)
StopMacro
I know this would probably be easier to sort out using code but I'm really
struggling with coding at the moment and find macros a lot easier to sort
out (especially as this is part of a much bigger set of checks/instructions
I really don't want to complicate things more for myself).
Thanks for the help Guys,
Raist.