Union from Oracle and Access 97

Posted on 2000-03-21
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?
Question by:BBrian
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

Expert Comment

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

Author Comment

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?  

Expert Comment

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.

Independent Software Vendors: 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!


Expert Comment

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.

Author Comment

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?

Accepted Solution

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

Author Comment

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

Thanks for your help!

Expert Comment

ID: 2709427
you're welcome!

Featured Post

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Visual Studio search word table and return Cell index 8 85
Recommendation vb6 to or others 14 241
vbModal 12 75
VBA - If Bookmark = "XXBOOKMARKXX" then 15 67
I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

738 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