Have a display form that presents global, YTD & MTD stats.
One of the fields is TotalRefund. For the global total this isn't an issue because there is data (numbers to add up). For MTD, when there is no values (no refunds Month-to-date), I get a #error in the field. When I change the calendar on my PC to a month where there is data, the screen works fine so I know my code is alright.
I created a select query (using the query wizard) to add the TotalRefund by Month, which works ok. I created a subform with one field called [Msum Of Refund]. As I said, when I change the calendar on my PC to a month where there is data, everything appears fine.
I have tried using the Nz function everywhere I can possibly think of from the query to the subform to the main display form with no luck.
Any ideas?
TIA R. Fisher
One of the fields is TotalRefund. For the global total this isn't an issue because there is data (numbers to add up). For MTD, when there is no values (no refunds Month-to-date), I get a #error in the field. When I change the calendar on my PC to a month where there is data, the screen works fine so I know my code is alright.
I created a select query (using the query wizard) to add the TotalRefund by Month, which works ok. I created a subform with one field called [Msum Of Refund]. As I said, when I change the calendar on my PC to a month where there is data, everything appears fine.
I have tried using the Nz function everywhere I can possibly think of from the query to the subform to the main display form with no luck.
Any ideas?
TIA R. Fisher