G
Guest
I have this calculation in an Access 97 application on a report detail
section. The calculation is as follows:
=====
=(IIf([rpt_Product_TequilaInfoData_Collection_PrevDay1].[Report].[HasData],[rpt_Product_TequilaInfoData_Collection_PrevDay1].[Report]![txt_ActualOnHndSales],0)+IIf([rpt_Product_TequilaInfoData_Collection_PrevDay1].[Report].[HasData],[rpt_Product_TequilaInfoData_Collection_PrevDay1].[Report]![txt_OpenBtlSales],0))-(IIf([rpt_Product_TequilaInfoData_Collection_Daily1].[Report].[HasData],[rpt_Product_TequilaInfoData_Collection_Daily1].[Report]![txt_ActualOnHndSales],0)+IIf([rpt_Product_TequilaInfoData_Collection_Daily1].[Report].[HasData],[rpt_Product_TequilaInfoData_Collection_Daily1].[Report]![txt_OpnBtlSales],0))
==================
The second part:
IIf([rpt_Product_TequilaInfoData_Collection_PrevDay1].[Report].[HasData],[rpt_Product_TequilaInfoData_Collection_PrevDay1].[Report]![txt_OpenBtlSales],0))
is either a null or 0. Actually any part of the calculation can be null or 0,
never an empty "", because it is all numeric data. Because of this null or 0
the rest of the calculated result are falling out. Why? Can one of you MS
Access guru's assist here? I really need to understand by example why this is
happening. I look forward to your input's on this one. Thanks so very much
before hand!
section. The calculation is as follows:
=====
=(IIf([rpt_Product_TequilaInfoData_Collection_PrevDay1].[Report].[HasData],[rpt_Product_TequilaInfoData_Collection_PrevDay1].[Report]![txt_ActualOnHndSales],0)+IIf([rpt_Product_TequilaInfoData_Collection_PrevDay1].[Report].[HasData],[rpt_Product_TequilaInfoData_Collection_PrevDay1].[Report]![txt_OpenBtlSales],0))-(IIf([rpt_Product_TequilaInfoData_Collection_Daily1].[Report].[HasData],[rpt_Product_TequilaInfoData_Collection_Daily1].[Report]![txt_ActualOnHndSales],0)+IIf([rpt_Product_TequilaInfoData_Collection_Daily1].[Report].[HasData],[rpt_Product_TequilaInfoData_Collection_Daily1].[Report]![txt_OpnBtlSales],0))
==================
The second part:
IIf([rpt_Product_TequilaInfoData_Collection_PrevDay1].[Report].[HasData],[rpt_Product_TequilaInfoData_Collection_PrevDay1].[Report]![txt_OpenBtlSales],0))
is either a null or 0. Actually any part of the calculation can be null or 0,
never an empty "", because it is all numeric data. Because of this null or 0
the rest of the calculated result are falling out. Why? Can one of you MS
Access guru's assist here? I really need to understand by example why this is
happening. I look forward to your input's on this one. Thanks so very much
before hand!