Solved

Trying to hide value in a form field until another field = "Y"

Posted on 2014-02-08
2
511 Views
Last Modified: 2014-02-13
I have 2 fields on a form.  The first one is a value list field and the choices are either "Y" or "N".

The second field is a calculated field being calculated in the query which the form is using as its record source.

But I want the value in the second field to be hidden until the value in the 1st field = "Y" and I can't seem to make it happen that way.  The value in the second field displays no matter what.

--Steve
0
Comment
Question by:SteveL13
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 29

Accepted Solution

by:
IrogSinta earned 500 total points
ID: 39844459
In the AfterUpdate event of the List Control add something like this:
Me.NameOfCalculatedControl.Visible = (Me.NameOfListControl = "Y")

Open in new window

Then in the OnCurrent event of the form call the AfterUpdate event of your list control:
Call NameOfListControl_AfterUpdate

Ron
0
 
LVL 20

Expert Comment

by:clarkscott
ID: 39845166
I was going to suggest another way... but Ron's is perfect.

Scott C
0

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
This article shows how to get a list of available printers for display in a drop-down list, and then to use the selected printer to print an Access report or a Word document filled with Access data, using different syntax as needed for working with …
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question