I have the following solution working in a report:
=[CountOfFrameModel]/DCount("FrameModel","tmain","frameLine=" & "'" & [FrameLine] & "'")
Needed to add the following criterial to the Dcount, tMain.FrameOWF = False and tMain.Status <> Cancelled.
Can this be done? I think it can but I am not sure about qutoes.