Hi, thanks in advance for your help. I have learned a great deal on this site.
Â
I have a table of Events. Linked to that table is a table of Expenses. The Expenses portal is inside a tabbed area and works well showing the expenses associated with each event. One of the tabbed portals EXPENSES is filtered to only show expense values above zero so it shows only expenses. The other tab, BALANCE, shows all the expenses and and payments related to the event. If everything has been paid, the total charges are zero
Â
I have a one line portal with a summary field REPORT ANOUNT TOTAL (It's labeled as Expenses that totals the expenses in the filtered or unfiltered portal.
I have a field below that field that calculates the event charges per day. SUB_DAY_CHARGES Â (It's labeled as Retreat Fee)
I have a field below that portal the calculates the # of guest rooms and charges for the rooms. SUB_ROOM_CHARGES (It's labeled as Room CHarges)
Â
I have another one line portal under that that calculates all of the above fields.. TOTAL_CHARGES (It's labeled as total charges)
Â
As long as there are records in the expenses portal, the whole thing works great. If there are no records in the portal for expenses then neither of the one line portals calculates. AS soon as one record shows up on the portal everything is fine. There may be an instance where there are no expenses and only fees so I would like this to be able to work without portal records if necessary.
Â
I tried this for my total_charges field and it didn't make a difference;
Â
If (IsEmpty ( Report Amount Total ) ; Events::sub_day_charges + Events::sub_room_charges ; Report Amount Total + Events::sub_day_charges + Events::sub_room_charges )
Â
Â
Oops, sent the wrong picture. This was before I corrected the calculations. It does accurately calculated with records. but not without.