G
Guest
I want to hide or show a subform based on the value of [Account#] but I can’t
seem to get it to work. If [Account#]=â€392†or “396†I want to show the
subform otherwise hide it. I have created the following macro and have
included it in the “After Update†Event on the [Account#] control. I also
have included this in the “On Current†Event of the form to hide/show when
moving from form to form.
Hide/ShowVehicleForm
[Forms]![CapitalItems]![Account#]="392";
Item: CapitalItems]![Vehiclessbf].[Visible]
Expression: Yes
[Forms]![CapitalItems]![Account#]="396"
Item: CapitalItems]![Vehiclessbf].[Visible]
Expression: Yes
[Forms]![CapitalItems]![Account#]<>"392"
Item: CapitalItems]![Vehiclessbf].[Visible]
Expression: No
[Forms]![CapitalItems]![Account#]<>"396"
Item: CapitalItems]![Vehiclessbf].[Visible]
Expression: No
Thanks for your help.
seem to get it to work. If [Account#]=â€392†or “396†I want to show the
subform otherwise hide it. I have created the following macro and have
included it in the “After Update†Event on the [Account#] control. I also
have included this in the “On Current†Event of the form to hide/show when
moving from form to form.
Hide/ShowVehicleForm
[Forms]![CapitalItems]![Account#]="392";
Item: CapitalItems]![Vehiclessbf].[Visible]
Expression: Yes
[Forms]![CapitalItems]![Account#]="396"
Item: CapitalItems]![Vehiclessbf].[Visible]
Expression: Yes
[Forms]![CapitalItems]![Account#]<>"392"
Item: CapitalItems]![Vehiclessbf].[Visible]
Expression: No
[Forms]![CapitalItems]![Account#]<>"396"
Item: CapitalItems]![Vehiclessbf].[Visible]
Expression: No
Thanks for your help.