Jeannie Cote
asked on
IFF expression for an Access report
Hi,
I have a report on which there is a control called CtrlCode, if the information in this control ends with an X, I need the information already in control AccessTotalsSumOfWeight to be copied in control Total_X
I tried the following formula:
= IIF([CtrlCode] Like "*X","[AccessTotalsSumOfWe ight]"
I get a mismatch
Any help would be greatly appreciated
Thanks
Jeannie
I have a report on which there is a control called CtrlCode, if the information in this control ends with an X, I need the information already in control AccessTotalsSumOfWeight to be copied in control Total_X
I tried the following formula:
= IIF([CtrlCode] Like "*X","[AccessTotalsSumOfWe
I get a mismatch
Any help would be greatly appreciated
Thanks
Jeannie
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you both for your help !
Select fld1, fld2, fld3, Iif(Right(CtrulCode, 1) = "X", AccessTotalsSumOfWeight, somethingelse) As Total_X from yourtable;
Then you can bind Total_X to the report control.