I have this very old access database which got converted to 2010 recently and for whatever reason one of the reports is no longer working. I didn’t build this and the owner is not willing to upgrade completely just wants this one issue resolved. Basically I have Report1 (rptInspContainers) which has a Report within it (Child131) and also this query which needs to grab the EquipID from the inner report (Child131).
SELECT TOP 1 tblInspData.Findings
FROM tblInspData
WHERE (((tblInspData.EquipID)=[Reports]![rptInspContainers]![Child131]![Report]![Text104]))
Any reason why this would have worked in a previous version of access and not 2010?
The later versions are a bit more fussy about . and ! so try a dot before [Report] i.e.
[Reports]![rptInspContainers]![Child131].[Report]![Text104]If that doesn’t work create a new Module in your database, and paste in the following code:
Then call the function in the query
and try again. If you don’t get an error, put a breakpoint in the function and see if you can see the value of Text104.