S
SimonG via AccessMonster.com
I have a button on a sub-form which resets three user controls on that sub-
form.
I would like the sub-form to be generic, so that I can use it with more than
one parent.
Currently the button runs a macro:
Action: SetValue
Item: [myFormName]![txtOption1]
Expression: “â€
Action: SetValue
Item: [myFormName]![txtOption2]
Expression: “â€
Action: SetValue
Item: [myFormName]![txtOption2]
Expression: “â€
{This is taken from the form, originally written as a parent, and works as
required.}
To convert this form to a generic sub-form (the fully qualified from name
will change for each parent the sub-form is used in). I have tried changing
the macro as follows:
Action: SetValue
Item: [me].[txtOption1]
Expression: “â€
Action: SetValue
Item: [me].[txtOption2]
Expression: “â€
Action: SetValue
Item: [me].[txtOption2]
Expression: “â€
Whilst this does not give an error message, it does not reset the option
boxes for the user.
How do I need to change the macro, so that the button works as required?
form.
I would like the sub-form to be generic, so that I can use it with more than
one parent.
Currently the button runs a macro:
Action: SetValue
Item: [myFormName]![txtOption1]
Expression: “â€
Action: SetValue
Item: [myFormName]![txtOption2]
Expression: “â€
Action: SetValue
Item: [myFormName]![txtOption2]
Expression: “â€
{This is taken from the form, originally written as a parent, and works as
required.}
To convert this form to a generic sub-form (the fully qualified from name
will change for each parent the sub-form is used in). I have tried changing
the macro as follows:
Action: SetValue
Item: [me].[txtOption1]
Expression: “â€
Action: SetValue
Item: [me].[txtOption2]
Expression: “â€
Action: SetValue
Item: [me].[txtOption2]
Expression: “â€
Whilst this does not give an error message, it does not reset the option
boxes for the user.
How do I need to change the macro, so that the button works as required?