hi to all
I have to keep this question in general terms - to go into detail would just drown the central issue.
Imagine VBScript that is used to run code in a CONTROL.mdb file. This CONTROL.mdb code creates a different QueryDef to UPDATE tables in hundreds of EXTERNAL mdb files, each containing many tables, all identical in structure. The VBScript has a loop that keeps feeding the CONTROL.mdb Paths/Names of the external mdb files. I need help with the following - is it generally better to...
a) Use the CONTROL.mdb's code to create a QueryDef IN EACH external mdb file, then use the VBScript code to open these external mdb files and run the queries, or...
b) Use the CONTROL.mdb's code to create a QueryDef IN EACH external mdb file, then use the CONTROL.mdb's code to run these external queries, or...
c) Use the CONTROL.mdb's code to create each QueryDef in CONTROL.mdb, then use the CONTROL.mdb's code to run these queries to UPDATE the external tables.
I already have made good progress in option a), where I can generate the QueryDefs in each of the external mdb files. But, I'm not sure I'm on the best path.
Any help from the gurus out there is really appreciated. I'm really stuggling with the best ways to co-ordinate my CONTROL.mdb, my VBScript, and the External mdb files.
Much thanks in advance
Vicky
I have to keep this question in general terms - to go into detail would just drown the central issue.
Imagine VBScript that is used to run code in a CONTROL.mdb file. This CONTROL.mdb code creates a different QueryDef to UPDATE tables in hundreds of EXTERNAL mdb files, each containing many tables, all identical in structure. The VBScript has a loop that keeps feeding the CONTROL.mdb Paths/Names of the external mdb files. I need help with the following - is it generally better to...
a) Use the CONTROL.mdb's code to create a QueryDef IN EACH external mdb file, then use the VBScript code to open these external mdb files and run the queries, or...
b) Use the CONTROL.mdb's code to create a QueryDef IN EACH external mdb file, then use the CONTROL.mdb's code to run these external queries, or...
c) Use the CONTROL.mdb's code to create each QueryDef in CONTROL.mdb, then use the CONTROL.mdb's code to run these queries to UPDATE the external tables.
I already have made good progress in option a), where I can generate the QueryDefs in each of the external mdb files. But, I'm not sure I'm on the best path.
Any help from the gurus out there is really appreciated. I'm really stuggling with the best ways to co-ordinate my CONTROL.mdb, my VBScript, and the External mdb files.
Much thanks in advance
Vicky