Hi,
I am creating a report from a single Access table. There are 2 fields in the table ([Total New Hours]and [TotalOldHours]) that I want to add. Some of the records have nulls so I accounted for them by using IsNull:
If IsNull({ProjDump1.Total New Hours}) Then
0
Else
{ProjDump1.Total New Hours}
and
If IsNull({ProjDump1.TotalOldHours}) Then
0
Else
{ProjDump1.TotalOldHours}
The records then either retun a number or a 0 to the report.
When I try to sum those 2 fields by creating a formula:
{ProjDump1.TotalOldHours} + {ProjDump1.Total New Hours}
The report only retuns a correct value if both fields are numbers. If one of the fields is '0' the Total field remains blank.
Any ideas?
I am creating a report from a single Access table. There are 2 fields in the table ([Total New Hours]and [TotalOldHours]) that I want to add. Some of the records have nulls so I accounted for them by using IsNull:
If IsNull({ProjDump1.Total New Hours}) Then
0
Else
{ProjDump1.Total New Hours}
and
If IsNull({ProjDump1.TotalOldHours}) Then
0
Else
{ProjDump1.TotalOldHours}
The records then either retun a number or a 0 to the report.
When I try to sum those 2 fields by creating a formula:
{ProjDump1.TotalOldHours} + {ProjDump1.Total New Hours}
The report only retuns a correct value if both fields are numbers. If one of the fields is '0' the Total field remains blank.
Any ideas?