simplify IIf

J

jlute

Can this be simplified?

UNEstNtWt: IIf([tblFGUOM].[UOMType]="WT",Round([UNNtWt]*0.05+[UNNtWt],
6),IIf([tblFGUOM].[UOMType]="VOL",Round([UNNtWt],6)))

Thanks in advance!!!
 
D

Douglas J. Steele

What's your definition of "simplified"?

The only way I can think of would be:

UNEstNtWt:
Switch([tblFGUOM].[UOMType]="WT",Round([UNNtWt]*0.05+[UNNtWt],6),[tblFGUOM].[UOMType]="VOL",Round([UNNtWt],6))
 
J

jlute

Thanks, Doug! That's simplified in my book :)

Thanks!

What's your definition of "simplified"?

The only way I can think of would be:

UNEstNtWt:
Switch([tblFGUOM].[UOMType]="WT",Round([UNNtWt]*0.05+[UNNtWt],6),[tblFGUOM]­.[UOMType]="VOL",Round([UNNtWt],6))

--
Doug Steele, Microsoft Access MVPhttp://I.Am/DougSteele
(no private e-mails, please)




Can this be simplified?
UNEstNtWt: IIf([tblFGUOM].[UOMType]="WT",Round([UNNtWt]*0.05+[UNNtWt],
6),IIf([tblFGUOM].[UOMType]="VOL",Round([UNNtWt],6)))
Thanks in advance!!!- Hide quoted text -

- Show quoted text -
 

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

Similar Threads


Top