Solved

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

Posted on 2014-02-08
2
508 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
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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
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.
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…

685 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