G
Guest
I have a combo box that queries a small list so I can pick a name. If I pick
a name for this field I would like various fields on this form to return a
value that is specific to that name. I have tried using an expression with
the IIF statement and put it in various places default, macro, event etc.
Example: =IIf("name"=Lake Grove,80,0) or =IIF([name]="LAKE GROVE",80,0) OR
=IIF([name]="LAKE GROVE",80,=IIF([name]="LAKEVIEW",120,0)) you can see where
Im going with this. In the macro I tried to use in a setvalue on and I get
parsing errors. In default it will except but nothing happens when I change
names. I have 4 names to chose from so each of specific fields could have 4
different values to display. Please help
a name for this field I would like various fields on this form to return a
value that is specific to that name. I have tried using an expression with
the IIF statement and put it in various places default, macro, event etc.
Example: =IIf("name"=Lake Grove,80,0) or =IIF([name]="LAKE GROVE",80,0) OR
=IIF([name]="LAKE GROVE",80,=IIF([name]="LAKEVIEW",120,0)) you can see where
Im going with this. In the macro I tried to use in a setvalue on and I get
parsing errors. In default it will except but nothing happens when I change
names. I have 4 names to chose from so each of specific fields could have 4
different values to display. Please help