Well, no need to have created a module. You can usually just hit ctrl-g and that jumps you to the VBA editor. At that point you just do a debug->compile.
What this means is that BEFORE you done any changes, and BEFORE you trying to use the j-street linking code, your database seems to have code modules missing.
At this point then, your issue and question has nothing to do with the re-link code. You want to “fix” up the application and find these general errors and issues BEFORE you attempt importing the re-link code. Do this before you introduce ANY new code.
So I would not worry about the re-link code until such time you fix and create a proper working application. It makes “little” sense to introduce new code and modules when the existing application has code errors.
In fact, I would go back to the original un-split database and find + fix the compile errors. So does the original un-split database not compile? (Does it have code parts missing?).
So spend all your time on the un-split database. Get rid of all compile errors.
What this suggests is that your original database/application you working on has issues and problems – and those issues and problems need to be fixed LONG before you attempt to introduce additional code and modules.
>> There is no code in the original
If there is no code in the original then where is the code you posted coming from such as fGetMDBName?
So what you given so far is confusing.
If there is no code in the original database, then how is the debug->compile failing? Cleary “some” code must exist else no compile errors would exist when no code exists.
Regards,
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada