A
Alan UK
Let me explain the scenario:
I have a database holding large tables that requires refreshing and there is
a module to do this
dbName = BigTables.mdb , module = import1 [containing public function
importa()]
I have a second database which holds queries and acts (hopefully) as a
controller for the other database
dbName = control.mdb
what code do I use in the control.mdb to import data into the BigTables.mdb
using the existing module and import specifications? I saw some mention of it
as an aside in a question about running external queries but when I tried to
apply it it became clear I had got it fundamentally wrong.
I understand I am supposed to reference a database, but not which database
gets which reference. When I tried to run my code it ran successfully - but
into the wrong database. Instead of refreshing BigTable.mdb I got a new table
in control.mdb.
Incidentally how do you delete a reference from the VBA project explorer if
you got a dud reference in by mistake? Unchecking it in the Tools>References
still leaves it sitting there and can interfere with a corrected entry?
Thanks for your help.
I have a database holding large tables that requires refreshing and there is
a module to do this
dbName = BigTables.mdb , module = import1 [containing public function
importa()]
I have a second database which holds queries and acts (hopefully) as a
controller for the other database
dbName = control.mdb
what code do I use in the control.mdb to import data into the BigTables.mdb
using the existing module and import specifications? I saw some mention of it
as an aside in a question about running external queries but when I tried to
apply it it became clear I had got it fundamentally wrong.
I understand I am supposed to reference a database, but not which database
gets which reference. When I tried to run my code it ran successfully - but
into the wrong database. Instead of refreshing BigTable.mdb I got a new table
in control.mdb.
Incidentally how do you delete a reference from the VBA project explorer if
you got a dud reference in by mistake? Unchecking it in the Tools>References
still leaves it sitting there and can interfere with a corrected entry?
Thanks for your help.