I've found the problem is not with the coding, but with the query.
Here is the SQL for the query qryImportDocFilter:
SELECT [D&D Dwg List].AFC, nz([D&D Dwg List].[JEG Proj]) AS CPN, [D&D Dwg List].[PrintedDoc#],
SpecialPDN([APCDoc#],[PrintedDoc#]) AS MPDN, [D&D Dwg List].[ApcDoc#],
[D&D Dwg...