Conditions - If /Then

L

Lisa

What is the statement used to automatically fill in a
field (1 of 4 available) depending on the contents in the
description field (multiple line list of descriptions).
 
J

John Vinson

What is the statement used to automatically fill in a
field (1 of 4 available) depending on the contents in the
description field (multiple line list of descriptions).

You'll have to clarify your setup here!

What table fields do you have? What datatypes? What's the context:
inserting a new record on a form?
 
A

AJ Raiber

Lisa,

It sounds like what you will want can be done one of
two ways. If this is a calculation that will need to run
once per form and then will be complete and relatively
static, you can use IIF statements. The syntax is as
follows:

IIF(comparitor,true results,false results)

ex: IIF([My Field]="No","No","Maybe")

In the example it says if "My Field" is "No" then the
current field is "No" and if "My Field" is anything else,
then the current Field will be "Maybe".

The other way, if you will need this to be constantly
updated or if you have a large number of possibilities
would be to build another table and use DLookup. Help
files for it are in Access as it would take way too much
room here. HTH

AJ
 

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