First post... Not a pro, just a seasoned user. Developed several small Access applications along the years, with extensive use of VBA. Bumped into Access idiosyncrasies many times, but was eventually able to sort them out or work around them. This one, however, has outwitted me, so I'm turning to this forum for help.
I'm putting together a single page (no recordsource) report with stats figures by gender and age range, among other things, for an elders nursing home. I'm using the DCount function to derive each figure. The report presents about 50 different such figures.
Problem is simply: the figures appear correctly for the female population and yield "#Error" for the male part. However, other than the 'F' or 'M' values in the DCount criteria field, the formulas for each set of boxes are exactly the same!
To illustrate what I'm saying:
=DCount ("[estdatsai]", "rp010", "[pesexo]='F' and [fxet]=1") works as expected, while the companion male counterpart
=DCount ("[estdatsai]", "rp010", "[pesexo]='M' and [fxet]=1") gives me #Error.
Visualizing the "rp010" query provides no light. The "pesexo" field contains just M's and F's and there seems to be no other gender-connected data.
Has anyone experienced/solved a similar data-dependent apparent behavior?