That code causes access to crash. To explain further:
My subreport is based on a query. The subreport is also linked to the
mainreport by an ID. If no records match the ID, then subreport doesn't
stay open. To explain further, the subreport gives an onhand Beginning
inventory figure for various product classes and locations. The report is
only for a particular product class and location. So, if no product was on
hand at a particular location at the beginning of the month, then the
subreport closes and the area on the mainreport is blank. My problem is in
on the main reports footer. It calculates all the ins and outs for the
month, then shows end of month inventory. If subreport is blank, though, I
get #error# instead of correct figure. I have tried nz function, and
various other expressions, but nothing seems to work. Maybe there is a
better approach to a monthly report with beginning on hand and ending on
hand??
Thanks
Damon