docmd.openmodule on foreign db's modules

DataMiner

Registered User.
Local time
Today, 10:16
Joined
Jul 26, 2001
Messages
336
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,lngecol) 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?
 

Users who are viewing this thread

Back
Top Bottom