Display Fields with only money values (1 Viewer)

Tor_Fey

Registered User.
Local time
Today, 20:57
Joined
Feb 8, 2013
Messages
121
Afternoon All;

I have a query as per screen show below; is there a way to make it display where the 'qtr's' value is '1' show the value of 'SumOfTF_Ben_O/P' otherwise display value as: £0.00?

So as it is now; in the query the values are displayed as:

Code:
financialyear        SumOfTF_Ben_O/P       Qtr1   Qtr2  Qtr3  Qtr4
17/18                   £5,000.00          0       0       1      0
17/18                   £1,400.00          0       1       0      0

What i would like to do is, if the value of any 'Qtr' is 0 then display the value of 'SumOfTF_Ben_O/P' as £0.00, but if the value of any 'Qtr' is 1 then display the value of 'SumOfTF_Ben_O/P' for that record.

So displayed example would be:

Code:
financialyear            Qtr1       Qtr2            Qtr3               Qtr4
17/18                     £0.00     £1,400.00    £5,000.00              £0.00

I hope i have explained this correctly, your help as always is appreciated.

Kind Regards
Tor Fey
 

Attachments

  • overpayments.png
    overpayments.png
    6.5 KB · Views: 102
Last edited:

isladogs

MVP / VIP
Local time
Today, 20:57
Joined
Jan 14, 2017
Messages
18,229
This should do it

Code:
IIf([QTR'S]=1,[SumOfBenTP_o/p],0)

Also you need to format the textbox as currency

NOTE: There may be typos. You need to fix your naming system.
There should be no spaces and no special characters such as / or '
 

Tor_Fey

Registered User.
Local time
Today, 20:57
Joined
Feb 8, 2013
Messages
121
Hi Ridders;

This is perfect, I have it working as needed.
Thank you so much for all your help once again.

Regards
Tor Fey

This should do it

Code:
IIf([QTR'S]=1,[SumOfBenTP_o/p],0)
Also you need to format the textbox as currency

NOTE: There may be typos. You need to fix your naming system.
There should be no spaces and no special characters such as / or '
 

isladogs

MVP / VIP
Local time
Today, 20:57
Joined
Jan 14, 2017
Messages
18,229
You're welcome
BTW It was hard work typing that code on my phone due to all the 'oddities' ...
Code:
IIf([QTR'S]=1,[SumOfBenTP_o/p],0)
 

Users who are viewing this thread

Top Bottom