having one field display when another field changes

N

Norm

I have a field CHSTAT that updates in the original database I want a new
field that will display something different as the CHSTAT updates and changes
ie. CHSTAT = "10" new field = "Printed"......CHSTAT = 20 new field=
"Located"

Cheers!!
 
J

John Spencer

In tables and fields you should have a table that has a field that has the
CHSTAT values and a field that has the equivalent text values.

Then you join that table to the current table in a query on the CHSTAT values.

If you want to do this on a form, you could use a combobox to select the
values. The source of the combobox would be your current CHTSTAT field. The
combobox's row source would be a query on the new table. The combobox could
display the numeric value and then your form could have a separate text
control to display the other information. The source for the text control
would be something like
=[Name Of Combobox].Column(1)


John Spencer
Access MVP 2002-2005, 2007-2010
The Hilltop Institute
University of Maryland Baltimore County
 
A

Al Campagna

Norm,
You dpn't say how many different Chstat values there may be, but if more
than 5 or so, it would be a candidate for a combo box, (ex. cboChstat)
based against a table of preset values. Ex. tblChstat...
Chstat Desc
10 Printed
20 Located... etc
Bind cboChstat to your Chstat field of your table, and use the combo to
select a Chstat value. An unbound text control on the form, with a
ControlSource
of...
=cboChstat.Colunm(1)
will always display the contents of the 2nd column in cboChstat. (combo
columns are numbered left to right 0, 1, 2, 3, etc.)
No need to save Desc... it can always be re-related to from the Chstat
value
in any subsequent query, form, or report.
--
hth
Al Campagna
Microsoft Access MVP 2007-2009
http://home.comcast.net/~cccsolutions/index.html

"Find a job that you love... and you'll never work a day in your life."
 
N

Norm

Thank you for your replies...what I forgot to mention is that the data comes
from a table that is linked to an AS400 system and not entered on a form...I
was hoping it could be along the lines of a conditional format in Excel
 
J

John Spencer

Well you could build a complex calculated field in a query.

Switch(ChStat=10,"Printed",ChStat=20,"Located",ChStat=30,"Destroyed")


John Spencer
Access MVP 2002-2005, 2007-2010
The Hilltop Institute
University of Maryland Baltimore County
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top