Advertisement

01.10.2008 at 07:22PM PST, ID: 23074769
[x]
Attachment Details

VBA ODBC Link Function

Asked by charos in Access Coding/Macros, Oracle 3rd Party Tools

Tags: Microsoft, Access, 97, ODBC Oracle, VBA

I need to have a function that will allow me to use lists of tables and ODBC entries to allow VBA driven linking of tables. The ODBC entries will be created before the code is executed.

I have a table with a list of Oracle tables

Table_Names
      "Name_Prefix"
      "Status_Codes"
      "Priorities"

ODBC_Data_Sources               UID               PWD
      "S1_Development"              U1                P1
      "S2_QA"                             U2                P2
      "S3_Production"                 U3                P3

And now I want to loop through the returned rows...

For loop1 = first_table to Last Table
    For loop2 = FIrst_Data_Source to Last_Data_Source
                Create a ODBC link between the Table_Name and Source

                       Create Links

                next loop2

               'Run tests on connected tables (I will do this...)

         For loop2 = FIrst_Data_Source to Last_Data_Source

                Unlink ODBC link

          next loop2

     next loop1

Thanks!Start Free Trial
[+][-]01.11.2008 at 10:06AM PST, ID: 20638559

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.11.2008 at 12:06PM PST, ID: 20639788

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Access Coding/Macros, Oracle 3rd Party Tools
Tags: Microsoft, Access, 97, ODBC Oracle, VBA
Sign Up Now!
Solution Provided By: therealmongoose
Participating Experts: 2
Solution Grade: A
 
 
[+][-]03.07.2008 at 05:26PM PST, ID: 21075441

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.07.2008 at 07:12PM PST, ID: 21075708

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628