P
Paul Shapiro
After spending hours fighting this problem in a newly upgraded database, I
found Allen Browne's documentation that Access 2007 introduced a new bug
where a control recordsource like this fails:
=iif(SubformControl.Form.RecordsetClone.RecordCount=0, 0,
SubformControl.Form.txtSubformTotal).
Thank you to Allen for nailing the problem. Since I'm using SP1 and seeing
the same problem, I gather it has not been fixed yet.
Has anyone come up with a good workaround? I have avoided the issue for now
by using =SubformControl.Form.NewRecord, but that only worked by allowing
additions in the subform. My original design had a read-only subform, in
which case .NewRecord is never true. I'd prefer to keep the subform
read-only.
found Allen Browne's documentation that Access 2007 introduced a new bug
where a control recordsource like this fails:
=iif(SubformControl.Form.RecordsetClone.RecordCount=0, 0,
SubformControl.Form.txtSubformTotal).
Thank you to Allen for nailing the problem. Since I'm using SP1 and seeing
the same problem, I gather it has not been fixed yet.
Has anyone come up with a good workaround? I have avoided the issue for now
by using =SubformControl.Form.NewRecord, but that only worked by allowing
additions in the subform. My original design had a read-only subform, in
which case .NewRecord is never true. I'd prefer to keep the subform
read-only.