Alexandra,
I agree with Bob's suggestion (except for his parentheses counting).
However, a couple of questions...
- Do you really want the data in the form to be text? It seems to me
it would be preferable, for a number of reasons, to use numerical
values, and use the Format property of the textbox on the form to
display as currency.
- Do you really want a blank space in the textbox if DlxRmSeason is
not one of the offered options. I would normally make it Null myself.
Thus...
=IIf([DlxRmSeason]="Spring Rate",85,IIf([DlxRmSeason]="Summer
Rate",109,IIf([DlxRmSeason]="Fall-Winter Rate",75,Null)))
- However, you might actually find that the Switch function is more
applicable than IIf...
=Switch([DlxRmSeason]="Spring Rate",85,[DlxRmSeason]="Summer
Rate",109,[DlxRmSeason]="Fall-Winter Rate",75)
- Steve Schapel, Microsoft Access MVP