Are you importing the objects one at a time to narrow down which one is causing the issue?
Yes. I am importing them via the import wizard, one at a time, but I get the error message with every one I try.
I have imported a module from an earlier version and it works fine. it also appears in the navigation pane in the VBA window, which the original modules do not, although they are still there in the Access window.( I do have backups, but I have done a lot of work on a couple of modules and that was a month or two ago and I don’t want to have to get my head around it again, but it is looking like I will have to.)
I was searching the whole project for the occurrence of a query and I am wondering if I have unwittingly erased all the code?