View Full Version : docmd.openmodule on foreign db's modules


DataMiner
01-24-2008, 09:20 AM
Hi,
I want to be able to search public modules in databases outside of the one that I'm in. For the current project, this works fine:
docmd.openmodule myDoc
set mdl=modules(mydoc)
if mdl.find(myString,lngsline,lngscol,lngeline,lngeco l) then
{do some stuff}
end if

But I want my application to be able to search in modules in other db's, too.

I've tried setting references to the other db's. I can then manually open their modules, but docmd.openmodule can't seem to find them.

Any ideas?