Is Iif the right function to use for the following scenario???

W

WilliamFence

I am using Access 2003. I have a form that lists states in a drop box.
Depending on what state the user chooses, I need to be able to assign an
integer to another column for use in a formula.

example:
User selects Wyoming from the drop box. The value 2 is posted in a seperate
column in the same table.
 
L

louisjohnphillips

I am using Access 2003.  I have a form that lists states in a drop box. 
Depending on what state the user chooses, I need to be able to assign an
integer to another column for use in a formula.

example:
User selects Wyoming from the drop box.  The value 2 is posted in a seperate
column in the same table.



I'm not sure you "need to be able to assign an integer to another
column for use in a formula."

Why not have a table called StateRatings with columns

StatePostalCode text(2)
StateName text(32)
RatingValue integer

A combobox control on you data entry form can use this table as a Row
Source. When you wish to perform the calculation, join to
StateRatings on StatePostalCode. The RatingValue will be there.

When modeling data, one does not duplicate values that can be derived
from other tables.
 

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