Hi. Am new to Access and do not know it very well - am much more comfortable with Crystal Reports! I am sure that this is a VERY basic request, but I am lost. I have searched through other posts but cannot really find what I am looking for. Am using A2K and need to build an expression. All fields are in the same table.
I want to sum some numeric fields based on a YES/NO check box. If the response is YES then add on an additional cost otherwise just sum the main financial years.
In Crystal I would have written similar too:
if [Add-on] = YES then ([FY!]+[FY2]+...[FY9]+[Add_On_Cost]) else ([FY!]+[FY2]+...[FY9])
But this is not working for me! Have tried substituting YES for IsNotNull etc etc.
Please could someone help me write the correct syntax!!!!
Thank in advance, Ade![[sunshine] [sunshine] [sunshine]](/data/assets/smilies/sunshine.gif)
I want to sum some numeric fields based on a YES/NO check box. If the response is YES then add on an additional cost otherwise just sum the main financial years.
In Crystal I would have written similar too:
if [Add-on] = YES then ([FY!]+[FY2]+...[FY9]+[Add_On_Cost]) else ([FY!]+[FY2]+...[FY9])
But this is not working for me! Have tried substituting YES for IsNotNull etc etc.
Please could someone help me write the correct syntax!!!!
Thank in advance, Ade
![[sunshine] [sunshine] [sunshine]](/data/assets/smilies/sunshine.gif)