C
Clddleopard
I have a form with a subform whose visibile property is set to no. I have a
macro that runs when a choice is made in a combo box that sets the visible
property of the subform to yes when the selection=2. The macro sets the
visible property of the subform to no when the selection does not =2. This is
how I have the macro:
Condition: [Appearance]=2
Action:Set Value
Item: [Forms]![Appearance Request
Basic]![OffSiteApp].[Form].[Detail].[Visible]
Expression: True
Condition:...
Action:StopMacro
Conditionthis I left blank)
Action: SetValue
Item:[Forms]![Appearance Request Basic]![OffSiteApp].[Form].[Detail].[Visible]
Expression:False
This macro runs in the AfterUpdate event of the combo box and on the
OnCurrent event of the form.
This works great for what I want it to do, except when I try to make a
duplicate record it says that the action failed. If I hit halt until it goes
away, it makes the duplicate record and shows the subform correctly.
My question is, how do I get it to not show the action failed error? (And it
seems odd to me that it claims the action has failed when it clearly hasn't).
Thanks in advance for your help!
macro that runs when a choice is made in a combo box that sets the visible
property of the subform to yes when the selection=2. The macro sets the
visible property of the subform to no when the selection does not =2. This is
how I have the macro:
Condition: [Appearance]=2
Action:Set Value
Item: [Forms]![Appearance Request
Basic]![OffSiteApp].[Form].[Detail].[Visible]
Expression: True
Condition:...
Action:StopMacro
Conditionthis I left blank)
Action: SetValue
Item:[Forms]![Appearance Request Basic]![OffSiteApp].[Form].[Detail].[Visible]
Expression:False
This macro runs in the AfterUpdate event of the combo box and on the
OnCurrent event of the form.
This works great for what I want it to do, except when I try to make a
duplicate record it says that the action failed. If I hit halt until it goes
away, it makes the duplicate record and shows the subform correctly.
My question is, how do I get it to not show the action failed error? (And it
seems odd to me that it claims the action has failed when it clearly hasn't).
Thanks in advance for your help!