H
HollyH
I have a query in which I need to switch a code for a value.
example
(working/currently operational)
txtFEERATE: Switch
([Time Sheets DB]![DIVISION]="1.M.0"," 0.50",
[Time Sheets DB]![DIVISION]="1.2.1","225",
[Time Sheets DB]![DIVISION]="1.3.1","290",
True,[FEE RATE])
I am now trying to do the same thing drawing the value to
change to from another table (single entry table) so that I
don't have to go to the code everytime we have a rate change.
(not working)
txtFEERATE: Switch
([Time Sheets DB]![DIVISION]="1.M.0",[Rates]![Milage],
[Time Sheets DB]![DIVISION]="1.2.1",[Rates]![SEM],
[Time Sheets DB]![DIVISION]="1.3.1",[Rates]![EDS],
True,[FEE RATE])
This table ([Rates]) will never have more than one record.
[Rates]![Milage] = 0.50
[Rates]![SEM] = 225
[Rates]![EDS] = 290
Any idea why it doesn't work?
example
(working/currently operational)
txtFEERATE: Switch
([Time Sheets DB]![DIVISION]="1.M.0"," 0.50",
[Time Sheets DB]![DIVISION]="1.2.1","225",
[Time Sheets DB]![DIVISION]="1.3.1","290",
True,[FEE RATE])
I am now trying to do the same thing drawing the value to
change to from another table (single entry table) so that I
don't have to go to the code everytime we have a rate change.
(not working)
txtFEERATE: Switch
([Time Sheets DB]![DIVISION]="1.M.0",[Rates]![Milage],
[Time Sheets DB]![DIVISION]="1.2.1",[Rates]![SEM],
[Time Sheets DB]![DIVISION]="1.3.1",[Rates]![EDS],
True,[FEE RATE])
This table ([Rates]) will never have more than one record.
[Rates]![Milage] = 0.50
[Rates]![SEM] = 225
[Rates]![EDS] = 290
Any idea why it doesn't work?