Solved

Union from Oracle and Access 97

Posted on 2000-03-21
8
275 Views
Last Modified: 2010-05-02
I have a query from an access database
and an oracle database.  I need a union query so I can output the file to a crystal report.  Suppose the data types from oracle and Access 97 do not match.
What is the best strategy here?
0
Comment
Question by:BBrian
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 

Expert Comment

by:pinshah
ID: 2643284
Union Query dnt bother abt the datatypes i suppose. only the fields number should be same.
0
 

Author Comment

by:BBrian
ID: 2643360
Even if the queries are derived from different drivers?

Or maybe this should be a recordset created through an Oracle stored procedure...

Ya reckon?  
0
 
LVL 4

Expert Comment

by:gcs001
ID: 2643822
You may have to write your own UNION type code in VB as I don't think you can get one recordset back from 2 different databases as you will have different connections to the different databases.

I would advise you to get your 2 recordsets via VB code and then programmatically do a UNION on these 2 recordsets within the VB program.

Regards,
Grant.
0
SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

 
LVL 1

Expert Comment

by:phiro
ID: 2643887
Best would be to run the query on one database...
Copy your Access records into Oracle tables and run the union on the Oracle database.
Or the other way around, whichever has the best performance.
Another option is to use an ADO recordset, load this with the records of the two databases (You can change the database connection at runtime) and you have the rows you want in one recordset. After that you can do your union stuff.
0
 

Author Comment

by:BBrian
ID: 2661723
One of the tables in the access database
is a dbf file.  using ado, I cannot access the linked data.  However, I can use dao to see the linked data.  Is it possible to reference ado and dao in the same project?
0
 
LVL 1

Accepted Solution

by:
phiro earned 100 total points
ID: 2663168
Yes.
Just reference both libraries from the references menu
0
 

Author Comment

by:BBrian
ID: 2709406
Sorry it took me so long to grade the answer.

Thanks for your help!
0
 
LVL 1

Expert Comment

by:phiro
ID: 2709427
you're welcome!
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Suggested Courses
Course of the Month7 days, 1 hour left to enroll

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question