Late binding

G

Guest

Access 97. I have created a database that creates 78 sub self contained
databases that are sent to managers around the world. The problem is this I
get an error on the following line of code in the new databases.

Dim cbrCommandBar As CommandBar

I know that the reason for this is that the references have to be reset in
each of the sub databases and then the all run fine. Is there either:

1. A way through VB to automatically set the references or
2. I've heard about late binding but don't know much about it.

How would one set late binding for the above issue so that references are
not necessary? Any help is greatly appreciated.
 
G

Guest

I don't know if you can add references to one database from another. If it
turns out not to be possible, a work-around would be to instead of creating
each sub database from nothing, have a "pre-referenced" database as a
template which can be copied, renamed and populated as required

Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top